]> Savannah Git Hosting - gnulib.git/commitdiff
stdlib: Fix compilation error with Sun C++.
authorBruno Haible <bruno@clisp.org>
Tue, 17 Sep 2024 01:56:55 +0000 (03:56 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 17 Sep 2024 14:07:35 +0000 (16:07 +0200)
* lib/stdlib.in.h: Don't obey the special invocation convention when
Sun C++ is used.

ChangeLog
lib/stdlib.in.h

index 574ffb6c0e56fbedbedcc6206d26253da18604aa..cf0829d772e5ef39431b9764c354439dc30ec0b0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-09-16  Bruno Haible  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
 
        faccessat: Correct errno value on AIX.
index 637da4e32c04dbbb1749819a8d9d7cc2debe127d..6caf0836c630972cf8ee23da43e29a9ea0611fbf 100644 (file)
@@ -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