summaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/bits/ptr_traits.h
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/include/bits/ptr_traits.h')
-rw-r--r--libstdc++-v3/include/bits/ptr_traits.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libstdc++-v3/include/bits/ptr_traits.h b/libstdc++-v3/include/bits/ptr_traits.h
index c85e6d44ded..047efa5cf28 100644
--- a/libstdc++-v3/include/bits/ptr_traits.h
+++ b/libstdc++-v3/include/bits/ptr_traits.h
@@ -36,7 +36,10 @@
#if __cplusplus > 201703L
#include <concepts>
-#define __cpp_lib_constexpr_memory 201811L
+# ifndef __cpp_lib_constexpr_memory
+// Defined to a newer value in bits/unique_ptr.h for C++23
+# define __cpp_lib_constexpr_memory 201811L
+# endif
namespace __gnu_debug { struct _Safe_iterator_base; }
#endif