diff options
author | Kevin Ryde <user42@zip.com.au> | 2000-07-26 01:22:46 +0200 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2000-07-26 01:22:46 +0200 |
commit | 5b6b25047ba5d200e5a8cce169a07e9468854513 (patch) | |
tree | a52a3e59a0c1436d3d758dafc697094d60298d3a /demos/factorize.c | |
parent | a1ed07f9210996dd40ae0d96936001af83991a0d (diff) | |
download | gmp-5b6b25047ba5d200e5a8cce169a07e9468854513.tar.gz |
* demos/factorize.c: Don't declare random() on glibc.
Diffstat (limited to 'demos/factorize.c')
-rw-r--r-- | demos/factorize.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/demos/factorize.c b/demos/factorize.c index 9559195e9..a74140fa0 100644 --- a/demos/factorize.c +++ b/demos/factorize.c @@ -36,8 +36,12 @@ random () return mrand48 (); } #else +/* Glibc stdlib.h has "int32_t random();" which is right, and in fact + redeclaring it as "long" conflicts on i386. */ +#ifndef __GLIBC__ long random (); #endif +#endif void factor_using_division (mpz_t t, unsigned int limit) |