aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib.in.h
diff options
context:
space:
mode:
authorPaul Eggert2025-04-19 12:18:28 -0700
committerPaul Eggert2025-04-19 19:31:25 -0700
commit71ee484cac3e0e5b68f006b4cca81c13ca6ce11e (patch)
tree21476621d11357283ad30c8b2bcec2871e604ba1 /lib/stdlib.in.h
parent30335bb73483fce9d4204f1e18618fe777d0f45e (diff)
downloademacs-71ee484cac3e0e5b68f006b4cca81c13ca6ce11e.tar.gz
emacs-71ee484cac3e0e5b68f006b4cca81c13ca6ce11e.zip
Update from Gnulib by running admin/merge-gnulib
Diffstat (limited to 'lib/stdlib.in.h')
-rw-r--r--lib/stdlib.in.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/stdlib.in.h b/lib/stdlib.in.h
index bd82086ff37..dbe8ebc8502 100644
--- a/lib/stdlib.in.h
+++ b/lib/stdlib.in.h
@@ -63,7 +63,7 @@
63#include <stddef.h> 63#include <stddef.h>
64 64
65/* MirBSD 10 defines WEXITSTATUS in <sys/wait.h>, not in <stdlib.h>. 65/* MirBSD 10 defines WEXITSTATUS in <sys/wait.h>, not in <stdlib.h>.
66 glibc 2.40 defines WCOREDUMP in <sys/wait.h>, not in <stdlib.h>. */ 66 glibc 2.41 defines WCOREDUMP in <sys/wait.h>, not in <stdlib.h>. */
67#if @GNULIB_SYSTEM_POSIX@ && !(defined WEXITSTATUS && defined WCOREDUMP) 67#if @GNULIB_SYSTEM_POSIX@ && !(defined WEXITSTATUS && defined WCOREDUMP)
68# include <sys/wait.h> 68# include <sys/wait.h>
69#endif 69#endif
@@ -120,14 +120,14 @@ struct random_data
120# include <unistd.h> 120# include <unistd.h>
121#endif 121#endif
122 122
123#if ((@GNULIB_STRTOL@ && @REPLACE_STRTOL@) || (@GNULIB_STRTOLL@ && @REPLACE_STRTOLL@) || (@GNULIB_STRTOUL@ && @REPLACE_STRTOUL@) || (@GNULIB_STRTOULL@ && @REPLACE_STRTOULL@)) && defined __cplusplus && !defined GNULIB_NAMESPACE && defined __GNUG__ && !defined __clang__ && defined __sun 123#if ((@GNULIB_STRTOL@ && @REPLACE_STRTOL@) || (@GNULIB_STRTOLL@ && @REPLACE_STRTOLL@) || (@GNULIB_STRTOUL@ && @REPLACE_STRTOUL@) || (@GNULIB_STRTOULL@ && @REPLACE_STRTOULL@)) && defined __cplusplus && !defined GNULIB_NAMESPACE && defined __GNUG__ && !defined __clang__ && (defined __sun || defined _AIX)
124/* When strtol, strtoll, strtoul, or strtoull is going to be defined as a macro 124/* When strtol, strtoll, strtoul, or strtoull is going to be defined as a macro
125 below, this may cause compilation errors later in the libstdc++ header files 125 below, this may cause compilation errors later in the libstdc++ header files
126 (that are part of GCC), such as: 126 (that are part of GCC), such as:
127 error: 'rpl_strtol' is not a member of 'std' 127 error: 'rpl_strtol' is not a member of 'std'
128 To avoid this, include the relevant header files here, before these symbols 128 To avoid this, include the relevant header files here, before these symbols
129 get defined as macros. But do so only on Solaris 11 (where it is needed), 129 get defined as macros. But do so only on Solaris 11 and AIX (where it is
130 not on mingw (where it would cause other compilation errors). */ 130 needed), not on mingw (where it would cause other compilation errors). */
131# include <string> 131# include <string>
132#endif 132#endif
133 133
@@ -1473,11 +1473,17 @@ _GL_WARN_ON_USE (setstate_r, "setstate_r is unportable - "
1473# if @REPLACE_REALLOC_FOR_REALLOC_POSIX@ 1473# if @REPLACE_REALLOC_FOR_REALLOC_POSIX@
1474# if @REPLACE_REALLOC_FOR_REALLOC_POSIX@ == 2 1474# if @REPLACE_REALLOC_FOR_REALLOC_POSIX@ == 2
1475# define _GL_INLINE_RPL_REALLOC 1 1475# define _GL_INLINE_RPL_REALLOC 1
1476# ifdef __cplusplus
1477extern "C" {
1478# endif
1476_GL_REALLOC_INLINE void * 1479_GL_REALLOC_INLINE void *
1477rpl_realloc (void *ptr, size_t size) 1480rpl_realloc (void *ptr, size_t size)
1478{ 1481{
1479 return realloc (ptr, size ? size : 1); 1482 return realloc (ptr, size ? size : 1);
1480} 1483}
1484# ifdef __cplusplus
1485}
1486# endif
1481# endif 1487# endif
1482# if !((defined __cplusplus && defined GNULIB_NAMESPACE) \ 1488# if !((defined __cplusplus && defined GNULIB_NAMESPACE) \
1483 || _GL_USE_STDLIB_ALLOC) 1489 || _GL_USE_STDLIB_ALLOC)