From f3a1142689247303b66b663a6394a473d6298aaa Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 29 Apr 2023 03:18:17 +0200 Subject: stdbool tests: Avoid compilation error with Sun C on Solaris 10. * tests/test-stdbool.c (WORKING_BOOL): Set to 0 on Sun C. --- ChangeLog | 5 +++++ tests/test-stdbool.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2b02d6ced4..6156ebc137 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2023-04-28 Bruno Haible + + 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 hamt tests: Fix test failure with Sun C on Solaris 10/SPARC. 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 -- cgit v1.2.1