From: Bruno Haible Date: Tue, 17 Sep 2024 01:56:55 +0000 (+0200) Subject: stdlib: Fix compilation error with Sun C++. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=d7f11dcc15b69ce9e1f7bb0820572aa75eb196fb;p=gnulib.git stdlib: Fix compilation error with Sun C++. * lib/stdlib.in.h: Don't obey the special invocation convention when Sun C++ is used. --- diff --git a/ChangeLog b/ChangeLog index 3551ae92de..9ba5d0a184 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 e6c5123713..6667f426ad 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