Merge BoringSSL 2e74fda: Don't redefine alignas in C++.
This commit is contained in:
commit
fd118ce114
@ -126,6 +126,7 @@
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
#if !defined(__cplusplus)
|
||||
#if defined(__GNUC__) && \
|
||||
(__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) < 40800
|
||||
// |alignas| and |alignof| were added in C11. GCC added support in version 4.8.
|
||||
@ -133,8 +134,7 @@
|
||||
// reports support for C11.
|
||||
#define alignas(x) __attribute__ ((aligned (x)))
|
||||
#define alignof(x) __alignof__ (x)
|
||||
#elif !defined(__cplusplus)
|
||||
#if defined(_MSC_VER)
|
||||
#elif defined(_MSC_VER)
|
||||
#define alignas(x) __declspec(align(x))
|
||||
#define alignof(x) __alignof(x)
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user