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