We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8e0ea2 commit 5d15267Copy full SHA for 5d15267
1 file changed
Inc/DirectXMath.h
@@ -152,7 +152,10 @@
152
#include <stdint.h>
153
#pragma warning(pop)
154
155
-#ifdef __GNUC__
+#if __cplusplus >= 201703L
156
+#define XM_ALIGNED_DATA(x) alignas(x)
157
+#define XM_ALIGNED_STRUCT(x) struct alignas(x)
158
+#elif defined(__GNUC__)
159
#define XM_ALIGNED_DATA(x) __attribute__ ((aligned(x)))
160
#define XM_ALIGNED_STRUCT(x) struct __attribute__ ((aligned(x)))
161
#else
0 commit comments