From 97c847efc86b714fb1a87de9eb8c857e77705210 Mon Sep 17 00:00:00 2001 From: Vincent Loechner Date: Wed, 21 Nov 2012 18:04:52 +0100 Subject: [PATCH] renamed "value_compare" to "value_cmp" to remove a conflict with a C++ library --- source/arith/arithmetique.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/arith/arithmetique.h b/source/arith/arithmetique.h index 0c706c6..a90a5bb 100644 --- a/source/arith/arithmetique.h +++ b/source/arith/arithmetique.h @@ -329,7 +329,7 @@ typedef cln::cl_I Value; #define value_abs_le(v1,v2) (cln::abs(v1)<=cln::abs(v2)) #define value_sign(val) (cln::signum(val)) -#define value_compare(v1,v2) (cln::compare((v1),(v2))) +#define value_cmp(v1,v2) (cln::compare((v1),(v2))) #define value_addto(ref,val1,val2) ((ref) = (val1)+(val2)) #define value_add_int(ref,val,vint) ((ref) = (val)+(vint)) @@ -406,7 +406,7 @@ typedef void (*value_print_gmp_free_t)(void *, size_t); /* Trian operators on 'Value' */ #define value_sign(val) (mpz_sgn(val)) -#define value_compare(v1,v2) (mpz_cmp((v1),(v2))) +#define value_cmp(v1,v2) (mpz_cmp((v1),(v2))) /* Binary operations on 'Value' */ @@ -491,7 +491,7 @@ typedef void (*value_print_gmp_free_t)(void *, size_t); /* Trian operators on 'Value' */ #define value_sign(v) (value_eq(v,VALUE_ZERO)?0:value_lt(v,VALUE_ZERO)?-1:1) -#define value_compare(v1,v2) (value_eq(v1,v2)?0:value_lt(v1,v2)?-1:1) +#define value_cmp(v1,v2) (value_eq(v1,v2)?0:value_lt(v1,v2)?-1:1) /* Binary operators on 'Value' */ -- 2.11.4.GIT