Add L suffix to __cpp_lib_char8_t value
authorJonathan Wakely <jwakely@redhat.com>
Wed, 6 Mar 2019 12:13:19 +0000 (12:13 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 6 Mar 2019 12:13:19 +0000 (12:13 +0000)
* include/bits/c++config.h (_cpp_lib_char8_t): Add L suffix to
constant.
* testsuite/experimental/feat-char8_t.cc: Likewise.

From-SVN: r269421

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/c++config
libstdc++-v3/testsuite/experimental/feat-char8_t.cc

index 989ba25229f1b7009e73df0ed74f828d67f8422b..84b3fda4cb2687fe5ed0540a69f21de636dee3af 100644 (file)
@@ -1,5 +1,9 @@
 2019-03-06  Jonathan Wakely  <jwakely@redhat.com>
 
+       * include/bits/c++config.h (_cpp_lib_char8_t): Add L suffix to
+       constant.
+       * testsuite/experimental/feat-char8_t.cc: Likewise.
+
         * include/std/type_traits [C++20] (is_bounded_array)
         (is_unbounded_array, is_bounded_array_v, is_unbounded_array_v):
         Define.
index 9993f4b1998b03f244eb8d84e3af2ce3aa477418..c785bf84c1bdbc838af49c3fe3131f4959a7c77a 100644 (file)
@@ -633,7 +633,7 @@ namespace std
 # endif
 #endif
 #ifdef _GLIBCXX_USE_CHAR8_T
-# define __cpp_lib_char8_t 201811
+# define __cpp_lib_char8_t 201811L
 #endif
 
 /* Define if __float128 is supported on this host. */
index 4384f98da34e853cbb33e68dc2cf54529af5ff4c..e843604266c99c28788ab0734e2e6f5676241709 100644 (file)
@@ -12,6 +12,6 @@
 
 #ifndef  __cpp_lib_char8_t
 #  error "__cpp_lib_char8_t"
-#elif  __cpp_lib_char8_t != 201811
-#  error "__cpp_lib_char8_t != 201811"
+#elif  __cpp_lib_char8_t != 201811L
+#  error "__cpp_lib_char8_t != 201811L"
 #endif