cvs: php-src /ext/gmp gmp.c

From: Date: Mon, 24 Nov 2003 16:09:46 +0000
Subject: cvs: php-src /ext/gmp gmp.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-24644@lists.php.net to get a copy of this message
sniper Mon Nov 24 11:09:46 2003 EDT Modified files: /php-src/ext/gmp gmp.c Log: Fix the build for other than x86 archs. Index: php-src/ext/gmp/gmp.c diff -u php-src/ext/gmp/gmp.c:1.39 php-src/ext/gmp/gmp.c:1.40 --- php-src/ext/gmp/gmp.c:1.39 Wed Nov 19 00:00:56 2003 +++ php-src/ext/gmp/gmp.c Mon Nov 24 11:09:45 2003 @@ -32,7 +32,6 @@ /* Needed for gmp_random() */ #include "ext/standard/php_rand.h" #include "ext/standard/php_lcg.h" -#include <gmp-mparam.h> #define GMP_ABS(x) ((x) >= 0 ? (x) : -(x)) /* True global resources - no need for thread safety here */ @@ -1091,7 +1090,7 @@ 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); }

« previous php.cvs (#24644) next »