mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Add missing cstddef include for C++ builds
Closes GH-15096.
This commit is contained in:
1
NEWS
1
NEWS
@@ -6,6 +6,7 @@ PHP NEWS
|
||||
. Fix GH-14978 (The xmlreader extension phpize build). (Peter Kokot)
|
||||
. Throw Error exception when encountering recursion during comparison, rather
|
||||
than fatal error. (ilutov)
|
||||
. Added missing cstddef include for C++ builds. (cmb)
|
||||
|
||||
- BCMath:
|
||||
. Adjust bcround()'s $mode parameter to only accept the RoundingMode
|
||||
|
||||
@@ -791,9 +791,13 @@ extern "C++" {
|
||||
# define ZEND_STATIC_ASSERT(c, m)
|
||||
#endif
|
||||
|
||||
#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) /* C11 */ \
|
||||
|| (defined(__cplusplus) && __cplusplus >= 201103L) /* C++11 */
|
||||
#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) /* C11 */
|
||||
typedef max_align_t zend_max_align_t;
|
||||
#elif (defined(__cplusplus) && __cplusplus >= 201103L) /* C++11 */
|
||||
extern "C++" {
|
||||
# include <cstddef>
|
||||
}
|
||||
typedef std::max_align_t zend_max_align_t;
|
||||
#else
|
||||
typedef union {
|
||||
char c;
|
||||
|
||||
Reference in New Issue
Block a user