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=68c31247143e967dc35b7a785a6d4e4a65af4476;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 39bab4e5b5..b7bba5a141 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 b901d175ae..b1c27e5da8 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. */