]> Savannah Git Hosting - gnulib.git/commitdiff
stdbool tests: Avoid compilation error with Sun C on Solaris 10.
authorBruno Haible <bruno@clisp.org>
Sat, 29 Apr 2023 01:18:17 +0000 (03:18 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 5 May 2023 10:21:12 +0000 (12:21 +0200)
* tests/test-stdbool.c (WORKING_BOOL): Set to 0 on Sun C.

ChangeLog
tests/test-stdbool.c

index 3fcb53698b21b34a178cfb2ff3260d40a97fe015..03b13220e3eafe44cdb5444b3885675ef1ea2d22 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-04-28  Bruno Haible  <bruno@clisp.org>
+
+       stdbool tests: Avoid compilation error with Sun C on Solaris 10.
+       * tests/test-stdbool.c (WORKING_BOOL): Set to 0 on Sun C.
+
 2023-04-28  Bruno Haible  <bruno@clisp.org>
 
        hamt tests: Fix test failure with Sun C on Solaris 10/SPARC.
index 6ca9535e876f0994d1b050ec303a9d514e31065d..a4ff4d4b532766bb5453f17bd60d87611b1a03a2 100644 (file)
@@ -48,7 +48,7 @@
    least, not for all compilers and compiler options.  */
 #if ((HAVE_C_BOOL || defined __cplusplus \
       || HAVE_STDBOOL_H || 3 <= __GNUC__ || 4 <= __clang_major__) \
-     && !defined _MSC_VER)
+     && !(defined _MSC_VER || defined __SUNPRO_C))
 # define WORKING_BOOL 1
 #else
 # define WORKING_BOOL 0