Commit 5244ba77487 for php
commit 5244ba77487b749162728924e569c5567475b93f
Author: Tim Düsterhus <tim@tideways-gmbh.com>
Date: Fri Sep 25 10:40:10 2026 +0200
zend_portability: Simplify check for `max_align_t` (#21229)
C11 / C++11 are the baseline requirements, thus we only need to check for
Windows.
diff --git a/Zend/zend_portability.h b/Zend/zend_portability.h
index ccad24682fd..2e16a368364 100644
--- a/Zend/zend_portability.h
+++ b/Zend/zend_portability.h
@@ -870,8 +870,7 @@ extern "C++" {
# define ZEND_STATIC_ASSERT(c, m)
#endif
-#if ((defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) /* C11 */ \
- || (defined(__cplusplus) && __cplusplus >= 201103L) /* C++11 */) && !defined(ZEND_WIN32)
+#if !defined(ZEND_WIN32)
typedef max_align_t zend_max_align_t;
#else
typedef union {