Mercurial > gnulib
changeset 40038:54de6758058f
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.
author | Assaf Gordon <assafgordon@gmail.com> |
---|---|
date | Sun, 16 Dec 2018 16:24:28 +0100 |
parents | 01b31e00d12f |
children | 929010f01e22 |
files | ChangeLog lib/random.c |
diffstat | 2 files changed, 16 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sun Dec 16 15:58:18 2018 +0100 +++ b/ChangeLog Sun Dec 16 16:24:28 2018 +0100 @@ -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. @@ -1966,7 +1973,7 @@ * 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.
--- a/lib/random.c Sun Dec 16 15:58:18 2018 +0100 +++ b/lib/random.c Sun Dec 16 16:24:28 2018 +0100 @@ -52,6 +52,14 @@ #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. */