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

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

index d2a90a3e404693123b4755bdf004a53894e1a94c..8f5fdf8c8e01e1c8ac95388ae5fdf94a06a85ae8 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 ed15b176019058c23ab05960fd0c657234d39582..a5720dca652b1b1f53c68c1fa2ab22fdf1fa7404 100644 (file)
@@ -17,7 +17,7 @@
 #define GNULIB_NAMESPACE gnulib
 #include <config.h>
 
-#if __cplusplus >= 201103
+#if __cplusplus >= 201103 && __cplusplus < 202002
 
 # include <cstdbool>