From 02ba2f41c6e88f1c0ef2f90e042dd0b0e44997dc Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 17 Sep 2024 03:56:55 +0200 Subject: [PATCH] stdlib: Fix compilation error with Sun C++. * lib/stdlib.in.h: Don't obey the special invocation convention when Sun C++ is used. --- ChangeLog | 6 ++++++ lib/stdlib.in.h | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b8d5b9a966..40559d38fe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-09-16 Bruno Haible + + stdlib: Fix compilation error with Sun C++. + * lib/stdlib.in.h: Don't obey the special invocation convention when + Sun C++ is used. + 2024-09-16 Bruno Haible stdc_count_ones: Fix compilation error with g++ < 4.4. diff --git a/lib/stdlib.in.h b/lib/stdlib.in.h index 1efdceec4a..1777dafb3f 100644 --- a/lib/stdlib.in.h +++ b/lib/stdlib.in.h @@ -20,7 +20,9 @@ #endif @PRAGMA_COLUMNS@ -#if (defined __need_system_stdlib_h && !defined _GLIBCXX_STDLIB_H) || defined __need_malloc_and_calloc +#if ((defined __need_system_stdlib_h && !defined _GLIBCXX_STDLIB_H) \ + || defined __need_malloc_and_calloc) \ + && !defined __SUNPRO_CC /* Special invocation conventions inside some gnulib header files, and inside some glibc header files, respectively. Do not recognize this special invocation convention when GCC's -- 2.39.5