From a8b163a0fe19526be1a75441903f7d2ea96d48eb Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 10 Sep 2022 19:18:05 +0200 Subject: [PATCH] stdbool C++ tests: Fix for C++20. * tests/test-stdbool-c++2.cc: Don't include in C++20 or newer. --- ChangeLog | 6 ++++++ tests/test-stdbool-c++2.cc | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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 -- 2.39.5