Skip to content

Commit 45a6ead

Browse files
committed
zend_portability: Simplify check for max_align_t
C11 / C++11 are the baseline requirements, thus we only need to check for Windows.
1 parent 9c900b6 commit 45a6ead

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Zend/zend_portability.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -847,8 +847,7 @@ extern "C++" {
847847
# define ZEND_STATIC_ASSERT(c, m)
848848
#endif
849849

850-
#if ((defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) /* C11 */ \
851-
|| (defined(__cplusplus) && __cplusplus >= 201103L) /* C++11 */) && !defined(ZEND_WIN32)
850+
#if !defined(ZEND_WIN32)
852851
typedef max_align_t zend_max_align_t;
853852
#else
854853
typedef union {

0 commit comments

Comments
 (0)