From b4aa9d4076b7260cae801c726db19a4b176c5eaa 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 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 -- 2.39.5