From 3f5a2f35e6093d96073891434ca12615d15df878 Mon Sep 17 00:00:00 2001 From: foobar Date: Mon, 24 Nov 2003 16:10:17 +0000 Subject: [PATCH] MFH: Fix build for other archs than x86. --- ext/gmp/gmp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); } -- 2.40.0