]> 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>
Fri, 31 May 2024 21:41:08 +0000 (23:41 +0200)
* lib/stdlib.in.h: Undefine __need_malloc_and_calloc after doing the

ChangeLog
lib/stdlib.in.h

index ddc6b6bfad6964cd175136d74a8bf4d6ed425875..098fe742b2afe272ccec8ccf4f7a01fda22df97b 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 272464e0fcc75bfc353195ff6677cfb5e84dcf4d..d9acff28e5c2576ddcf72867eb4f10cf23d76be1 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.  */