]> Savannah Git Hosting - gnulib.git/commitdiff
stdbool C++ tests: Fix for C++20.
authorBruno Haible <bruno@clisp.org>
Sat, 10 Sep 2022 17:18:05 +0000 (19:18 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 10 Sep 2022 17:18:05 +0000 (19:18 +0200)
* tests/test-stdbool-c++2.cc: Don't include <cstdbool> in C++20 or
newer.

ChangeLog
tests/test-stdbool-c++2.cc

index 8b8f32ad176df14caa927c42c119f192015a4b45..055523eff96779e39eadfcc4f60a48fbac2e4902 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2022-09-10  Bruno Haible  <bruno@clisp.org>
+
+       stdbool C++ tests: Fix for C++20.
+       * tests/test-stdbool-c++2.cc: Don't include <cstdbool> in C++20 or
+       newer.
+
 2022-09-10  Bruno Haible  <bruno@clisp.org>
 
        uchar: Work around error in C++ mode on AIX 7.2 with xlclang.
index 4d05e8073dd0bc9a2faf7d1382e4941959460984..551cbb67a0eef3ebf932b31592f09edf9fe3c283 100644 (file)
@@ -17,7 +17,7 @@
 #define GNULIB_NAMESPACE gnulib
 #include <config.h>
 
-#if __cplusplus >= 201103
+#if __cplusplus >= 201103 && __cplusplus < 202002
 
 # include <cstdbool>