commit | 9f6e9106176008e91af6a974b3cf31c064d6d884 | [log] [tgz] |
---|---|---|
author | Richard Smith <richard-llvm@metafoo.co.uk> | Thu Feb 21 02:17:58 2013 +0000 |
committer | Richard Smith <richard-llvm@metafoo.co.uk> | Thu Feb 21 02:17:58 2013 +0000 |
tree | d361537a054e3381c213fb31ee7aade1087eceb6 | |
parent | 75f6a66f9a946a6839f70cf4856ceb1fb94aa6ad [diff] |
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