diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2002-01-17 20:33:21 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2002-01-17 20:33:21 +0000 |
commit | 8db396d70d4c0fe70ba1ebf4696bb25701d20239 (patch) | |
tree | c3fd90105a5252656af745e4dcb8a953ef7c0dd7 /mpfr-test.h | |
parent | d2d5332e05f51800258e6b72d32bbbe25d0efc0f (diff) | |
download | mpfr-8db396d70d4c0fe70ba1ebf4696bb25701d20239.tar.gz |
Test "__hpux", not "hpux". Mask off mrand48 return value to 31 bits
to work around sloppy mpfr #include practices. (Torbjorn Granlund)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1654 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'mpfr-test.h')
-rw-r--r-- | mpfr-test.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mpfr-test.h b/mpfr-test.h index fe7813e17..d92bbeb1a 100644 --- a/mpfr-test.h +++ b/mpfr-test.h @@ -24,9 +24,9 @@ MA 02111-1307, USA. */ #include <sys/fpu.h> #endif -#if defined (hpux) +#if defined (__hpux) #define srandom srand48 -#define random mrand48 +#define random() (mrand48() & 0x7fffffff) #endif double drand _PROTO ((void)); |