Skip to content

Commit 2c42479

Browse files
committed
Merge branch 'PHP-8.4'
2 parents b48faee + f1a77c0 commit 2c42479

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Zend/zend_portability.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,9 @@ extern "C++" {
799799
/** @deprecated */
800800
#define ZEND_CGG_DIAGNOSTIC_IGNORED_END ZEND_DIAGNOSTIC_IGNORED_END
801801

802-
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) /* C11 */
802+
#if defined(__cplusplus)
803+
# define ZEND_STATIC_ASSERT(c, m) static_assert((c), m)
804+
#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) /* C11 */
803805
# define ZEND_STATIC_ASSERT(c, m) _Static_assert((c), m)
804806
#else
805807
# define ZEND_STATIC_ASSERT(c, m)

0 commit comments

Comments
 (0)