From 68c31247143e967dc35b7a785a6d4e4a65af4476 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 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. */ -- 2.39.5