]> Savannah Git Hosting - gnulib.git/commitdiff
stdlib: Handle glibc special invocation conventions correctly.
authorBruno Haible <bruno@clisp.org>
Wed, 22 May 2024 22:53:39 +0000 (00:53 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 22 May 2024 22:53:39 +0000 (00:53 +0200)
* lib/stdlib.in.h: Undefine __need_malloc_and_calloc after doing the

ChangeLog
lib/stdlib.in.h

index 1c85c92f9f46d1eef26d650e5814fa07a7c2837b..a520491dcd52cdac620d90be7faa10dcfae1188f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-05-22  Bruno Haible  <bruno@clisp.org>
+
+       stdlib: Handle glibc special invocation conventions correctly.
+       * lib/stdlib.in.h: Undefine __need_malloc_and_calloc after doing the
+       #include_next <stdlib.h>.
+
 2024-05-21  Paul Eggert  <eggert@cs.ucla.edu>
 
        c-strtod: include <stdio.h>
index ef9fde30eb2c1db472ec2228f75933b45d3fe2a9..cfc69d0a50629ef51033c861530b7591997d9100 100644 (file)
 
 #@INCLUDE_NEXT@ @NEXT_STDLIB_H@
 
+/* Make sure that the macros that indicate the special invocation convention
+   get undefined.  This is needed at least on CentOS 7.  */
+#undef __need_malloc_and_calloc
+
 #else
 /* Normal invocation convention.  */