summaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/c_std
diff options
context:
space:
mode:
authorPaolo Carlini <paolo.carlini@oracle.com>2013-06-11 09:50:55 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2013-06-11 09:50:55 +0000
commit899e00ebb25c3cc6bf87bded44e217ce8c81ed9c (patch)
tree92a99a96ac24c2fabb5fb9ab5e056327d1e3db3c /libstdc++-v3/include/c_std
parent77cea46edbb0b526aa04e4bee9be85103de60fb2 (diff)
downloadgcc-899e00ebb25c3cc6bf87bded44e217ce8c81ed9c.tar.gz
re PR libstdc++/56019 (max_align_t should be in std namespace)
2013-06-11 Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/56019 * include/c_global/cstddef (max_align_t): Add to namespace std. * include/c_std/cstddef: Likewise. * testsuite/18_support/max_align_t/requirements/1.cc: New. * testsuite/18_support/max_align_t/requirements/2.cc: Likewise. From-SVN: r199945
Diffstat (limited to 'libstdc++-v3/include/c_std')
-rw-r--r--libstdc++-v3/include/c_std/cstddef8
1 files changed, 8 insertions, 0 deletions
diff --git a/libstdc++-v3/include/c_std/cstddef b/libstdc++-v3/include/c_std/cstddef
index 9500bc514bd..6f1b5bd5d79 100644
--- a/libstdc++-v3/include/c_std/cstddef
+++ b/libstdc++-v3/include/c_std/cstddef
@@ -44,4 +44,12 @@
#include <bits/c++config.h>
#include <stddef.h>
+#if __cplusplus >= 201103L
+namespace std
+{
+ // We handle size_t, ptrdiff_t, and nullptr_t in c++config.h.
+ using ::max_align_t;
+}
#endif
+
+#endif // _GLIBCXX_CSTDDEF