diff options
author | Bruno Haible <bruno@clisp.org> | 2023-04-29 03:18:17 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2023-05-05 13:01:03 +0200 |
commit | da430ca91c42fd1d8293947296819d01c7093c29 (patch) | |
tree | 9d957e4741c0cc4924ef6a18c39cbd9e0db56d2a | |
parent | 581d2ae9e8b1fce4adbedb5a9baafef44199e123 (diff) | |
download | gnulib-da430ca91c42fd1d8293947296819d01c7093c29.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 | 4 |
2 files changed, 7 insertions, 2 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 5a754f8c73..71016822df 100644 --- a/tests/test-stdbool.c +++ b/tests/test-stdbool.c @@ -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 |