From: Bruno Haible Date: Sat, 10 Sep 2022 17:18:05 +0000 (+0200) Subject: stdbool C++ tests: Fix for C++20. X-Git-Tag: v1.0~2041 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=b4aa9d4076b7260cae801c726db19a4b176c5eaa;p=gnulib.git stdbool C++ tests: Fix for C++20. * tests/test-stdbool-c++2.cc: Don't include in C++20 or newer. --- diff --git a/ChangeLog b/ChangeLog index 8b8f32ad17..055523eff9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2022-09-10 Bruno Haible + + stdbool C++ tests: Fix for C++20. + * tests/test-stdbool-c++2.cc: Don't include in C++20 or + newer. + 2022-09-10 Bruno Haible uchar: Work around error in C++ mode on AIX 7.2 with xlclang. diff --git a/tests/test-stdbool-c++2.cc b/tests/test-stdbool-c++2.cc index 4d05e8073d..551cbb67a0 100644 --- a/tests/test-stdbool-c++2.cc +++ b/tests/test-stdbool-c++2.cc @@ -17,7 +17,7 @@ #define GNULIB_NAMESPACE gnulib #include -#if __cplusplus >= 201103 +#if __cplusplus >= 201103 && __cplusplus < 202002 # include