From: Bruno Haible Date: Sat, 10 Sep 2022 17:18:05 +0000 (+0200) Subject: stdbool C++ tests: Fix for C++20. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=a8b163a0fe19526be1a75441903f7d2ea96d48eb;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 d2a90a3e40..8f5fdf8c8e 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 ed15b17601..a5720dca65 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