From a553db497e8203755f67b5c3e64859bd7ec18a69 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 23 May 2024 00:53:39 +0200 Subject: [PATCH] stdlib: Handle glibc special invocation conventions correctly. * lib/stdlib.in.h: Undefine __need_malloc_and_calloc after doing the --- ChangeLog | 6 ++++++ lib/stdlib.in.h | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 1c85c92f9f..a520491dcd 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 ef9fde30eb..cfc69d0a50 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. */ -- 2.39.5