summaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/std/memory
diff options
context:
space:
mode:
authorDhruv Chawla <dhruvc@nvidia.com>2025-04-08 01:01:24 -0700
committerJonathan Wakely <redi@gcc.gnu.org>2025-05-06 12:55:16 +0100
commit1db1249b83096e15c8ef2ae4ba124d3af75ea32f (patch)
tree91687b635f80546bf14998723e575907a2888213 /libstdc++-v3/include/std/memory
parent59ec83c70eed933d39e09f9b991194ae3c496237 (diff)
libstdc++: Add missing feature-test macro in <memory>
Per version.syn#2, <memory> is required to define __cpp_lib_addressof_constexpr as 201603L. Bootstrapped and tested on aarch64-linux-gnu. Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com> libstdc++-v3/ChangeLog: * include/std/memory: Define __glibcxx_want_addressof_constexpr. * testsuite/20_util/headers/memory/version.cc: Test for macro value. (cherry picked from commit 0e65fef8717f404cf9c85bff51bf87d534f87828)
Diffstat (limited to 'libstdc++-v3/include/std/memory')
-rw-r--r--libstdc++-v3/include/std/memory1
1 files changed, 1 insertions, 0 deletions
diff --git a/libstdc++-v3/include/std/memory b/libstdc++-v3/include/std/memory
index c984436f625..b6cdd201e56 100644
--- a/libstdc++-v3/include/std/memory
+++ b/libstdc++-v3/include/std/memory
@@ -95,6 +95,7 @@
# include <bits/out_ptr.h>
#endif
+#define __glibcxx_want_addressof_constexpr
#define __glibcxx_want_allocator_traits_is_always_equal
#define __glibcxx_want_assume_aligned
#define __glibcxx_want_atomic_shared_ptr