]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Use appropriate feature test macro for std::byte
authorJonathan Wakely <jwakely@redhat.com>
Fri, 11 Oct 2024 12:29:06 +0000 (13:29 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 11 Oct 2024 14:48:18 +0000 (15:48 +0100)
libstdc++-v3/ChangeLog:

* include/bits/cpp_type_traits.h (__is_byte<byte>): Guard with
__glibcxx_byte macro instead of checking __cplusplus.

libstdc++-v3/include/bits/cpp_type_traits.h

index 19bf1edf647e05dc3c45e19dc564a20bdd694560..060652afb183ca671f0b613cf27b3b411cbc4b1c 100644 (file)
@@ -414,7 +414,7 @@ __INT_N(__GLIBCXX_TYPE_INT_N_3)
       typedef __true_type __type;
     };
 
-#if __cplusplus >= 201703L
+#ifdef __glibcxx_byte // C++ >= 17
   enum class byte : unsigned char;
 
   template<>