From: foobar Date: Mon, 24 Nov 2003 16:10:17 +0000 (+0000) Subject: MFH: Fix build for other archs than x86. X-Git-Tag: php-4.3.5RC1~177 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3f5a2f35e6093d96073891434ca12615d15df878;p=php MFH: Fix build for other archs than x86. --- diff --git a/ext/gmp/gmp.c b/ext/gmp/gmp.c index ce5fa0af88..bc83af003c 100644 --- a/ext/gmp/gmp.c +++ b/ext/gmp/gmp.c @@ -32,7 +32,6 @@ /* Needed for gmp_random() */ #include "ext/standard/php_rand.h" #include "ext/standard/php_lcg.h" -#include #define GMP_ABS(x) ((x) >= 0 ? (x) : -(x)) /* True global resources - no need for thread safety here */ @@ -1079,7 +1078,7 @@ ZEND_FUNCTION(gmp_random) GMPG(rand_initialized) = 1; } - mpz_urandomb(*gmpnum_result, GMPG(rand_state), GMP_ABS (limiter) * BITS_PER_MP_LIMB); + mpz_urandomb(*gmpnum_result, GMPG(rand_state), GMP_ABS (limiter) * __GMP_BITS_PER_MP_LIMB); ZEND_REGISTER_RESOURCE(return_value, gmpnum_result, le_gmp); }