From: Bruno Haible Date: Wed, 22 May 2024 22:53:39 +0000 (+0200) Subject: stdlib: Handle glibc special invocation conventions correctly. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=5d93d1013230ba19109a538b4045b08f97e19c68;p=gnulib.git stdlib: Handle glibc special invocation conventions correctly. * lib/stdlib.in.h: Undefine __need_malloc_and_calloc after doing the --- diff --git a/ChangeLog b/ChangeLog index ddc6b6bfad..098fe742b2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-05-22 Bruno Haible + + stdlib: Handle glibc special invocation conventions correctly. + * lib/stdlib.in.h: Undefine __need_malloc_and_calloc after doing the + #include_next . + 2024-05-21 Paul Eggert c-strtod: include diff --git a/lib/stdlib.in.h b/lib/stdlib.in.h index 272464e0fc..d9acff28e5 100644 --- a/lib/stdlib.in.h +++ b/lib/stdlib.in.h @@ -26,6 +26,10 @@ #@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. */