]> 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 11:01:03 +0000 (13:01 +0200)
* tests/test-stdbool.c (WORKING_BOOL): Set to 0 on Sun C.

ChangeLog
tests/test-stdbool.c

index 8b96fb4d2924db7e79167a192cb18624ad28d928..9829ed9d7d3759393237786ebc6131c7eb0ef8ca 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 5a754f8c739cfd9e2f12998fceea234d061d870c..71016822df536cbbe6b66c0cc172f4dae827e45f 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of <stdbool.h> substitute.
-   Copyright (C) 2002-2007, 2009-2022 Free Software Foundation, Inc.
+   Copyright (C) 2002-2007, 2009-2023 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -46,7 +46,7 @@
    least, not for all compilers and compiler options.  */
 #if ((202311 <= __STDC_VERSION__ || 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