[php-src] master: zend_portability: Simplify check for `max_align_t` (#21229)

From: Date: Fri, 25 Sep 2026 08:40:14 +0000
Subject: [php-src] master: zend_portability: Simplify check for `max_align_t` (#21229)
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-141529@lists.php.net to get a copy of this message
Author: Tim Düsterhus (TimWolla) Committer: GitHub (web-flow) Pusher: TimWolla Date: 2026-09-25T10:40:10+02:00 Commit: https://github.com/php/php-src/commit/5244ba77487b749162728924e569c5567475b93f Raw diff: https://github.com/php/php-src/commit/5244ba77487b749162728924e569c5567475b93f.diff zend_portability: Simplify check for max_align_t (#21229) C11 / C++11 are the baseline requirements, thus we only need to check for Windows. Changed paths: M Zend/zend_portability.h Diff: diff --git a/Zend/zend_portability.h b/Zend/zend_portability.h index ccad24682fdb..2e16a3683644 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 {

« previous php.cvs (#141529) next »