]> granicus.if.org Git - clang/commit
libstdc++'s <cstdalign> #includes <stdalign.h> and expects it to guard against
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 21 Feb 2013 02:17:58 +0000 (02:17 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 21 Feb 2013 02:17:58 +0000 (02:17 +0000)
commit9f6e9106176008e91af6a974b3cf31c064d6d884
treed361537a054e3381c213fb31ee7aade1087eceb6
parent75f6a66f9a946a6839f70cf4856ceb1fb94aa6ad
libstdc++'s <cstdalign> #includes <stdalign.h> and expects it to guard against
being included in C++. Don't define alignof or alignas in this case. Note that
the C++11 standard is broken in various ways here (it refers to the contents
of <stdalign.h> in C99, where that header did not exist, and doesn't mention
the alignas macro at all), but we do our best to do what it intended.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175708 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Headers/stdalign.h
test/Headers/cxx11.cpp [new file with mode: 0644]