]> 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 14:15:44 +0000 (16:15 +0200)
* lib/stdlib.in.h: Undefine __need_malloc_and_calloc after doing the

ChangeLog
lib/stdlib.in.h

index 39bab4e5b5919fc6bb7253c95e1d106af02a9b92..b7bba5a1419abf99d7cb3b956537ceff61cae491 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 b901d175aebf33b759951287162b4eea90519832..b1c27e5da8af4ebb216793dc49463ba98b835c86 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.  */