aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2024-10-11 13:29:06 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2024-10-11 15:48:18 +0100
commit00a87ee76f47d0fa5a10ef982101cb3c3b8e9c99 (patch)
tree5957f4a7c66a744a4a8730f15ce71cbee068eb81
parent4ad697bb7f1aad252e1398c6f13eed3fa6d0ca5b (diff)
downloadgcc-00a87ee76f47d0fa5a10ef982101cb3c3b8e9c99.zip
gcc-00a87ee76f47d0fa5a10ef982101cb3c3b8e9c99.tar.gz
gcc-00a87ee76f47d0fa5a10ef982101cb3c3b8e9c99.tar.bz2
libstdc++: Use appropriate feature test macro for std::byte
libstdc++-v3/ChangeLog: * include/bits/cpp_type_traits.h (__is_byte<byte>): Guard with __glibcxx_byte macro instead of checking __cplusplus.
-rw-r--r--libstdc++-v3/include/bits/cpp_type_traits.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/bits/cpp_type_traits.h b/libstdc++-v3/include/bits/cpp_type_traits.h
index 19bf1ed..060652a 100644
--- a/libstdc++-v3/include/bits/cpp_type_traits.h
+++ b/libstdc++-v3/include/bits/cpp_type_traits.h
@@ -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<>