diff options
| author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-06-11 09:50:55 +0000 |
|---|---|---|
| committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-06-11 09:50:55 +0000 |
| commit | 5aa09f64d2f4ce64cf8ae3212ea60fc77dbfbd61 (patch) | |
| tree | 92a99a96ac24c2fabb5fb9ab5e056327d1e3db3c /libstdc++-v3/include/c_std | |
| parent | 80f0bcca9accc7b170177887bcbe98cff294b052 (diff) | |
| download | ppe42-gcc-5aa09f64d2f4ce64cf8ae3212ea60fc77dbfbd61.tar.gz ppe42-gcc-5aa09f64d2f4ce64cf8ae3212ea60fc77dbfbd61.zip | |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199945 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/c_std')
| -rw-r--r-- | libstdc++-v3/include/c_std/cstddef | 8 |
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 |

