diff options
| author | Paul Eggert | 2019-11-26 13:14:42 -0800 |
|---|---|---|
| committer | Paul Eggert | 2019-11-26 13:15:41 -0800 |
| commit | 1b9dbca826ad8a742ab22719279f5ce3c5888a67 (patch) | |
| tree | afd37873182a84f6708c19105fedca1b4d58ddd2 /lib/stdlib.in.h | |
| parent | 50b52390ee5894e91965bd37f2d0c571df1e2e89 (diff) | |
| download | emacs-1b9dbca826ad8a742ab22719279f5ce3c5888a67.tar.gz emacs-1b9dbca826ad8a742ab22719279f5ce3c5888a67.zip | |
Update from Gnulib
This incorporates:
2019-11-24 Fix errors in C++ mode on mingw
2019-11-24 time_r: Fix for mingw (regression from 2019-11-16)
2019-11-24 sys_time: Fix errors in C++ mode on mingw
2019-11-22 intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
2019-11-21 Disable many _GL_CXXALIASWARN on non-glibc
2019-11-21 Fix various errors in _GL_CXXALIAS_SYS invocations
2019-11-19 intprops: INT_MULTIPLY_WRAPV speedup for GCC 9.3+
2019-11-18 stdint: Define [u]intptr_t correctly on 64-bit native Windows
2019-11-18 stdint: Fix value of WINT_MAX when we override wint_t
2019-11-18 stdint: Avoid "conflicting types" error on mingw 5.22
2019-11-16 time_r: Fix for mingw
2019-11-06 regex: now back in sync with glibc
* lib/intprops.h, lib/regexec.c, lib/signal.in.h:
* lib/stdint.in.h, lib/stdio.in.h, lib/stdlib.in.h:
* lib/string.in.h, lib/sys_select.in.h, lib/sys_time.in.h:
* lib/time.in.h, lib/unistd.in.h, m4/time_r.m4:
Copy from Gnulib.
Diffstat (limited to 'lib/stdlib.in.h')
| -rw-r--r-- | lib/stdlib.in.h | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/lib/stdlib.in.h b/lib/stdlib.in.h index e5583d967c1..2d02b4b0126 100644 --- a/lib/stdlib.in.h +++ b/lib/stdlib.in.h | |||
| @@ -176,7 +176,9 @@ _GL_CXXALIAS_RPL (calloc, void *, (size_t nmemb, size_t size)); | |||
| 176 | # else | 176 | # else |
| 177 | _GL_CXXALIAS_SYS (calloc, void *, (size_t nmemb, size_t size)); | 177 | _GL_CXXALIAS_SYS (calloc, void *, (size_t nmemb, size_t size)); |
| 178 | # endif | 178 | # endif |
| 179 | # if __GLIBC__ >= 2 | ||
| 179 | _GL_CXXALIASWARN (calloc); | 180 | _GL_CXXALIASWARN (calloc); |
| 181 | # endif | ||
| 180 | #elif defined GNULIB_POSIXCHECK | 182 | #elif defined GNULIB_POSIXCHECK |
| 181 | # undef calloc | 183 | # undef calloc |
| 182 | /* Assume calloc is always declared. */ | 184 | /* Assume calloc is always declared. */ |
| @@ -288,7 +290,9 @@ _GL_CXXALIAS_RPL (malloc, void *, (size_t size)); | |||
| 288 | # else | 290 | # else |
| 289 | _GL_CXXALIAS_SYS (malloc, void *, (size_t size)); | 291 | _GL_CXXALIAS_SYS (malloc, void *, (size_t size)); |
| 290 | # endif | 292 | # endif |
| 293 | # if __GLIBC__ >= 2 | ||
| 291 | _GL_CXXALIASWARN (malloc); | 294 | _GL_CXXALIASWARN (malloc); |
| 295 | # endif | ||
| 292 | #elif defined GNULIB_POSIXCHECK && !_GL_USE_STDLIB_ALLOC | 296 | #elif defined GNULIB_POSIXCHECK && !_GL_USE_STDLIB_ALLOC |
| 293 | # undef malloc | 297 | # undef malloc |
| 294 | /* Assume malloc is always declared. */ | 298 | /* Assume malloc is always declared. */ |
| @@ -311,7 +315,9 @@ _GL_FUNCDECL_SYS (mbtowc, int, (wchar_t *pwc, const char *s, size_t n)); | |||
| 311 | # endif | 315 | # endif |
| 312 | _GL_CXXALIAS_SYS (mbtowc, int, (wchar_t *pwc, const char *s, size_t n)); | 316 | _GL_CXXALIAS_SYS (mbtowc, int, (wchar_t *pwc, const char *s, size_t n)); |
| 313 | # endif | 317 | # endif |
| 318 | # if __GLIBC__ >= 2 | ||
| 314 | _GL_CXXALIASWARN (mbtowc); | 319 | _GL_CXXALIASWARN (mbtowc); |
| 320 | # endif | ||
| 315 | #elif defined GNULIB_POSIXCHECK | 321 | #elif defined GNULIB_POSIXCHECK |
| 316 | # undef mbtowc | 322 | # undef mbtowc |
| 317 | # if HAVE_RAW_DECL_MBTOWC | 323 | # if HAVE_RAW_DECL_MBTOWC |
| @@ -616,7 +622,9 @@ _GL_CXXALIAS_RPL (srandom, void, (unsigned int seed)); | |||
| 616 | # if !@HAVE_RANDOM@ | 622 | # if !@HAVE_RANDOM@ |
| 617 | _GL_FUNCDECL_SYS (srandom, void, (unsigned int seed)); | 623 | _GL_FUNCDECL_SYS (srandom, void, (unsigned int seed)); |
| 618 | # endif | 624 | # endif |
| 619 | _GL_CXXALIAS_SYS (srandom, void, (unsigned int seed)); | 625 | /* Need to cast, because on FreeBSD, the first parameter is |
| 626 | unsigned long seed. */ | ||
| 627 | _GL_CXXALIAS_SYS_CAST (srandom, void, (unsigned int seed)); | ||
| 620 | # endif | 628 | # endif |
| 621 | _GL_CXXALIASWARN (srandom); | 629 | _GL_CXXALIASWARN (srandom); |
| 622 | #elif defined GNULIB_POSIXCHECK | 630 | #elif defined GNULIB_POSIXCHECK |
| @@ -644,8 +652,10 @@ _GL_FUNCDECL_SYS (initstate, char *, | |||
| 644 | (unsigned int seed, char *buf, size_t buf_size) | 652 | (unsigned int seed, char *buf, size_t buf_size) |
| 645 | _GL_ARG_NONNULL ((2))); | 653 | _GL_ARG_NONNULL ((2))); |
| 646 | # endif | 654 | # endif |
| 647 | _GL_CXXALIAS_SYS (initstate, char *, | 655 | /* Need to cast, because on FreeBSD, the first parameter is |
| 648 | (unsigned int seed, char *buf, size_t buf_size)); | 656 | unsigned long seed. */ |
| 657 | _GL_CXXALIAS_SYS_CAST (initstate, char *, | ||
| 658 | (unsigned int seed, char *buf, size_t buf_size)); | ||
| 649 | # endif | 659 | # endif |
| 650 | _GL_CXXALIASWARN (initstate); | 660 | _GL_CXXALIASWARN (initstate); |
| 651 | #elif defined GNULIB_POSIXCHECK | 661 | #elif defined GNULIB_POSIXCHECK |
| @@ -668,7 +678,9 @@ _GL_CXXALIAS_RPL (setstate, char *, (char *arg_state)); | |||
| 668 | # if !@HAVE_SETSTATE@ || !@HAVE_DECL_SETSTATE@ | 678 | # if !@HAVE_SETSTATE@ || !@HAVE_DECL_SETSTATE@ |
| 669 | _GL_FUNCDECL_SYS (setstate, char *, (char *arg_state) _GL_ARG_NONNULL ((1))); | 679 | _GL_FUNCDECL_SYS (setstate, char *, (char *arg_state) _GL_ARG_NONNULL ((1))); |
| 670 | # endif | 680 | # endif |
| 671 | _GL_CXXALIAS_SYS (setstate, char *, (char *arg_state)); | 681 | /* Need to cast, because on Mac OS X 10.13, HP-UX, Solaris the first parameter |
| 682 | is const char *arg_state. */ | ||
| 683 | _GL_CXXALIAS_SYS_CAST (setstate, char *, (char *arg_state)); | ||
| 672 | # endif | 684 | # endif |
| 673 | _GL_CXXALIASWARN (setstate); | 685 | _GL_CXXALIASWARN (setstate); |
| 674 | #elif defined GNULIB_POSIXCHECK | 686 | #elif defined GNULIB_POSIXCHECK |
| @@ -809,7 +821,9 @@ _GL_CXXALIAS_RPL (realloc, void *, (void *ptr, size_t size)); | |||
| 809 | # else | 821 | # else |
| 810 | _GL_CXXALIAS_SYS (realloc, void *, (void *ptr, size_t size)); | 822 | _GL_CXXALIAS_SYS (realloc, void *, (void *ptr, size_t size)); |
| 811 | # endif | 823 | # endif |
| 824 | # if __GLIBC__ >= 2 | ||
| 812 | _GL_CXXALIASWARN (realloc); | 825 | _GL_CXXALIASWARN (realloc); |
| 826 | # endif | ||
| 813 | #elif defined GNULIB_POSIXCHECK && !_GL_USE_STDLIB_ALLOC | 827 | #elif defined GNULIB_POSIXCHECK && !_GL_USE_STDLIB_ALLOC |
| 814 | # undef realloc | 828 | # undef realloc |
| 815 | /* Assume realloc is always declared. */ | 829 | /* Assume realloc is always declared. */ |
| @@ -940,7 +954,9 @@ _GL_FUNCDECL_SYS (strtod, double, (const char *str, char **endp) | |||
| 940 | # endif | 954 | # endif |
| 941 | _GL_CXXALIAS_SYS (strtod, double, (const char *str, char **endp)); | 955 | _GL_CXXALIAS_SYS (strtod, double, (const char *str, char **endp)); |
| 942 | # endif | 956 | # endif |
| 957 | # if __GLIBC__ >= 2 | ||
| 943 | _GL_CXXALIASWARN (strtod); | 958 | _GL_CXXALIASWARN (strtod); |
| 959 | # endif | ||
| 944 | #elif defined GNULIB_POSIXCHECK | 960 | #elif defined GNULIB_POSIXCHECK |
| 945 | # undef strtod | 961 | # undef strtod |
| 946 | # if HAVE_RAW_DECL_STRTOD | 962 | # if HAVE_RAW_DECL_STRTOD |
| @@ -1079,7 +1095,9 @@ _GL_CXXALIAS_RPL (wctomb, int, (char *s, wchar_t wc)); | |||
| 1079 | # else | 1095 | # else |
| 1080 | _GL_CXXALIAS_SYS (wctomb, int, (char *s, wchar_t wc)); | 1096 | _GL_CXXALIAS_SYS (wctomb, int, (char *s, wchar_t wc)); |
| 1081 | # endif | 1097 | # endif |
| 1098 | # if __GLIBC__ >= 2 | ||
| 1082 | _GL_CXXALIASWARN (wctomb); | 1099 | _GL_CXXALIASWARN (wctomb); |
| 1100 | # endif | ||
| 1083 | #endif | 1101 | #endif |
| 1084 | 1102 | ||
| 1085 | 1103 | ||