aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2021-11-19 20:58:31 +0000
committerJonathan Wakely <jwakely@redhat.com>2021-11-22 14:57:17 +0000
commitd7376862b6dba35a192e3a80e9858d38f9709438 (patch)
tree9614c442a4acf5051f4037402cdcd23217a75bf4
parentf58bf16f672cda3ac55f92f12e258c817ece6e3c (diff)
downloadgcc-d7376862b6dba35a192e3a80e9858d38f9709438.zip
gcc-d7376862b6dba35a192e3a80e9858d38f9709438.tar.gz
gcc-d7376862b6dba35a192e3a80e9858d38f9709438.tar.bz2
libstdc++: Fix condition for definition of _GLIBCXX14_DEPRECATED
The check for C++14 was using the wrong date. libstdc++-v3/ChangeLog: * include/bits/c++config (_GLIBCXX14_DEPRECATED): Fix condition checking for C++14.
-rw-r--r--libstdc++-v3/include/bits/c++config4
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/include/bits/c++config b/libstdc++-v3/include/bits/c++config
index 4b7fa65..cbcdedb 100644
--- a/libstdc++-v3/include/bits/c++config
+++ b/libstdc++-v3/include/bits/c++config
@@ -107,7 +107,7 @@
# define _GLIBCXX11_DEPRECATED_SUGGEST(ALT)
#endif
-#if defined(__DEPRECATED) && (__cplusplus >= 201403L)
+#if defined(__DEPRECATED) && (__cplusplus >= 201402L)
# define _GLIBCXX14_DEPRECATED _GLIBCXX_DEPRECATED
# define _GLIBCXX14_DEPRECATED_SUGGEST(ALT) _GLIBCXX_DEPRECATED_SUGGEST(ALT)
#else
@@ -123,7 +123,7 @@
# define _GLIBCXX17_DEPRECATED_SUGGEST(ALT)
#endif
-#if defined(__DEPRECATED) && (__cplusplus > 201703L)
+#if defined(__DEPRECATED) && (__cplusplus >= 202002L)
# define _GLIBCXX20_DEPRECATED(MSG) [[deprecated(MSG)]]
# define _GLIBCXX20_DEPRECATED_SUGGEST(ALT) _GLIBCXX_DEPRECATED_SUGGEST(ALT)
#else