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>
Sun, 11 Sep 2022 01:01:28 +0000 (03:01 +0200)
* tests/test-stdbool-c++2.cc: Don't include <cstdbool> in C++20 or
newer.

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

index 7646452295e58a2b1f3d6f0b0a169d826d27466b..3ba8a123367dd3b0aeaa4f62dfa36158a243fed6 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>