]> Savannah Git Hosting - gnulib.git/commitdiff
random: Fix build error on native Windows (regression from 2018-06-21).
authorAssaf Gordon <assafgordon@gmail.com>
Sun, 16 Dec 2018 15:24:28 +0000 (16:24 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 16 Dec 2018 15:24:28 +0000 (16:24 +0100)
* lib/random.c (__srandom, __initstate, __setstate, __random,
__srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
to the symbols without '__' prefix.

ChangeLog
lib/random.c

index 3ab3138f510ec801b97d5b841615b0af9e4c0ef5..1f612a463d52272efd22011777e3477ca3121861 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
+
+       random: Fix build error on native Windows (regression from 2018-06-21).
+       * lib/random.c (__srandom, __initstate, __setstate, __random,
+       __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
+       to the symbols without '__' prefix.
+
 2018-12-16  Bruno Haible  <bruno@clisp.org>
 
        obstack, libc-config: Support HP-UX cc in C99 mode.
        * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
        (Which modules?): Reference it.
 
-2018-08-01  Assaf Gordon <assafgordon@gmail.com>
+2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
 
        dfa: fix memory leak
        * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
index d14b820841f32d5e8b6404d8003d1bad7fb21b98..5e01b7288473320a408b29d2c9af6cbffcd0fd24 100644 (file)
 
 #ifndef _LIBC
 # include <libc-config.h>
+# define __srandom srandom
+# define __initstate initstate
+# define __setstate setstate
+# define __random random
+# define __srandom_r srandom_r
+# define __initstate_r initstate_r
+# define __setstate_r setstate_r
+# define __random_r random_r
 #endif
 
 /* Specification.  */