diff options
author | Bruno Haible <bruno@clisp.org> | 2023-04-20 02:03:43 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2023-04-20 02:03:43 +0200 |
commit | 5ec5eb70b1e41b7e6aca67f6531ec20d28401bd3 (patch) | |
tree | 186cefb19c739603c949e2bb46fe4b9371468300 | |
parent | fe92102332352143ab17ba8596d66f91a5e256b3 (diff) | |
download | gnulib-5ec5eb70b1e41b7e6aca67f6531ec20d28401bd3.tar.gz |
random: Fix compilation errors in C++ on mingw 10.
* lib/stdlib.in.h (random, srandom): Disable _GL_CXXALIASWARN invocation
on non-glibc systems.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | lib/stdlib.in.h | 4 |
2 files changed, 10 insertions, 0 deletions
@@ -1,5 +1,11 @@ 2023-04-19 Bruno Haible <bruno@clisp.org> + random: Fix compilation errors in C++ on mingw 10. + * lib/stdlib.in.h (random, srandom): Disable _GL_CXXALIASWARN invocation + on non-glibc systems. + +2023-04-19 Bruno Haible <bruno@clisp.org> + year2038-required: Fix configure failure with MSVC. * m4/largefile.m4 (_AC_SYS_LARGEFILE_PROBE): Distinguish the results "support not detected" and "supported through gnulib". If the result is diff --git a/lib/stdlib.in.h b/lib/stdlib.in.h index bccab0e2c3..1479a2b287 100644 --- a/lib/stdlib.in.h +++ b/lib/stdlib.in.h @@ -1058,7 +1058,9 @@ _GL_FUNCDECL_SYS (random, long, (void)); int. */ _GL_CXXALIAS_SYS_CAST (random, long, (void)); # endif +# if __GLIBC__ >= 2 _GL_CXXALIASWARN (random); +# endif #elif defined GNULIB_POSIXCHECK # undef random # if HAVE_RAW_DECL_RANDOM @@ -1083,7 +1085,9 @@ _GL_FUNCDECL_SYS (srandom, void, (unsigned int seed)); unsigned long seed. */ _GL_CXXALIAS_SYS_CAST (srandom, void, (unsigned int seed)); # endif +# if __GLIBC__ >= 2 _GL_CXXALIASWARN (srandom); +# endif #elif defined GNULIB_POSIXCHECK # undef srandom # if HAVE_RAW_DECL_SRANDOM |