]> 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 01:56:55 +0000 (03:56 +0200)
* lib/stdlib.in.h: Don't obey the special invocation convention when
Sun C++ is used.

ChangeLog
lib/stdlib.in.h

index 3551ae92dea280eb11bd829bd4217f85d90b9696..9ba5d0a18400d3dfa956f393bc714ab4f6f12ad6 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>
 
        stdc_count_ones: Fix compilation error with g++ < 4.4.
index e6c5123713ec1adad31393a73b380745ec2a9d5e..6667f426ad99460240543a92933ac3ee5f42b039 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