mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix GH-19169: ZEND_STATIC_ASSERT for -std=c++17
needs to define ZEND_STATIC_ASSERT to appropriate C++ static_assert instead of the C version.
This commit is contained in:
parent
86aaded7e5
commit
be09985c87
2 changed files with 7 additions and 1 deletions
4
NEWS
4
NEWS
|
@ -2,6 +2,10 @@ PHP NEWS
|
|||
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||
?? ??? ????, PHP 8.3.25
|
||||
|
||||
- Core:
|
||||
. Fixed GH-19169 build issue with C++17 and ZEND_STATIC_ASSERT macro.
|
||||
(psumbera)
|
||||
|
||||
- Hash:
|
||||
. Fix crash on clone failure. (nielsdos)
|
||||
|
||||
|
|
|
@ -761,7 +761,9 @@ extern "C++" {
|
|||
/** @deprecated */
|
||||
#define ZEND_CGG_DIAGNOSTIC_IGNORED_END ZEND_DIAGNOSTIC_IGNORED_END
|
||||
|
||||
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) /* C11 */
|
||||
#if defined(__cplusplus)
|
||||
# define ZEND_STATIC_ASSERT(c, m) static_assert((c), m)
|
||||
#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) /* C11 */
|
||||
# define ZEND_STATIC_ASSERT(c, m) _Static_assert((c), m)
|
||||
#else
|
||||
# define ZEND_STATIC_ASSERT(c, m)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue