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

ChangeLog
lib/stdlib.in.h

index b8d5b9a96637ae50ae2599fd1c6f6781028c91a5..40559d38fef49dc8aadb75445cb88cb1e3e94175 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 1efdceec4af190094d6f3bcac82910691bbb475e..1777dafb3f00c19a990094b60a220cae72e6b29d 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