We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 778bdd5 commit 496fdb5Copy full SHA for 496fdb5
ext/opcache/zend_shared_alloc.h
@@ -166,7 +166,11 @@ typedef union _align_test {
166
zend_long lng;
167
} align_test;
168
169
-#if ZEND_GCC_VERSION >= 2000 || defined(__clang__)
+#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L
170
+# define PLATFORM_ALIGNMENT (alignof(align_test) < 8 ? 8 : alignof(align_test))
171
+#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
172
+# define PLATFORM_ALIGNMENT (_Alignof(align_test) < 8 ? 8 : _Alignof(align_test))
173
+#elif ZEND_GCC_VERSION >= 2000 || defined(__clang__)
174
# define PLATFORM_ALIGNMENT (__alignof__(align_test) < 8 ? 8 : __alignof__(align_test))
175
#else
176
# define PLATFORM_ALIGNMENT (sizeof(align_test))
0 commit comments