]> www.ginac.de Git - cln.git/commitdiff
Add support for MacOS X.
authorBruno Haible <bruno@clisp.org>
Fri, 21 Feb 2003 21:06:27 +0000 (21:06 +0000)
committerBruno Haible <bruno@clisp.org>
Fri, 21 Feb 2003 21:06:27 +0000 (21:06 +0000)
ChangeLog
src/base/random/cl_random_from.cc

index fef17e6f1514d2c981e3a2d169960d77a4180b28..ec0d90125320f3f846cfc1d1b8b38a2af09f8d85 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-02-21  Bruno Haible  <bruno@clisp.org>
+
+       * src/base/random/cl_random_from.cc (random_state::random_state): Add
+       support for MacOS X.
+       Reported by Erann Gat <gat@jpl.nasa.gov>.
+
 2002-08-03  Joerg Arndt  <jj@suse.de>
 
        * include/cln/config.h.in: Add support for x86_64 CPU.
index 7e3eac5157f25108c90190d1d0e60eb6c3271fdd..185f402ffbfc2417687e905dcc94e5e47f6ba3b9 100644 (file)
@@ -80,7 +80,7 @@ random_state::random_state ()
 {
        var uint32 seed_hi;
        var uint32 seed_lo;
-#if defined(unix) || defined(__unix) || defined(_AIX) || defined(sinix) || (defined(_WIN32) && defined(__GNUC__)) || defined(__BEOS__)
+#if defined(unix) || defined(__unix) || defined(_AIX) || defined(sinix) || (defined(__MACH__) && defined(__APPLE__)) || (defined(_WIN32) && defined(__GNUC__)) || defined(__BEOS__)
        seed_lo = ::get_seed();
        seed_hi = (rand() // zufällige 31 Bit (bei UNIX_BSD) bzw. 16 Bit (bei UNIX_SYSV)
                           << 8) ^ (uintL)(getpid()); // ca. 8 Bit von der Process ID