mirror of
https://github.com/microsoft/DirectXMath
synced 2024-11-24 21:20:13 +00:00
Use alignas when building for C++17
This commit is contained in:
parent
b8e0ea25f7
commit
5d152671db
@ -152,7 +152,10 @@
|
||||
#include <stdint.h>
|
||||
#pragma warning(pop)
|
||||
|
||||
#ifdef __GNUC__
|
||||
#if __cplusplus >= 201703L
|
||||
#define XM_ALIGNED_DATA(x) alignas(x)
|
||||
#define XM_ALIGNED_STRUCT(x) struct alignas(x)
|
||||
#elif defined(__GNUC__)
|
||||
#define XM_ALIGNED_DATA(x) __attribute__ ((aligned(x)))
|
||||
#define XM_ALIGNED_STRUCT(x) struct __attribute__ ((aligned(x)))
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user