diff options
author | Bruno Haible <bruno@clisp.org> | 2023-04-29 03:18:17 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2023-05-05 12:21:12 +0200 |
commit | db107fccf5371c86594e28cf576c12b4ef9cb041 (patch) | |
tree | 86574700c49db6c4a5d98fb5e58f99876781361b | |
parent | 3be82922b14391702ee21e7009729f3dde251745 (diff) | |
download | gnulib-db107fccf5371c86594e28cf576c12b4ef9cb041.tar.gz |
stdbool tests: Avoid compilation error with Sun C on Solaris 10.
* tests/test-stdbool.c (WORKING_BOOL): Set to 0 on Sun C.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | tests/test-stdbool.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,5 +1,10 @@ 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. * tests/test-hamt.c (main): Finish with exit code 0. diff --git a/tests/test-stdbool.c b/tests/test-stdbool.c index 6ca9535e87..a4ff4d4b53 100644 --- a/tests/test-stdbool.c +++ b/tests/test-stdbool.c @@ -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 |