File tree 2 files changed +7
-2
lines changed 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 6
6
. Fix GH-14978 (The xmlreader extension phpize build). (Peter Kokot)
7
7
. Throw Error exception when encountering recursion during comparison, rather
8
8
than fatal error. (ilutov)
9
+ . Added missing cstddef include for C++ builds. (cmb)
9
10
10
11
- BCMath:
11
12
. Adjust bcround()'s $mode parameter to only accept the RoundingMode
Original file line number Diff line number Diff line change @@ -791,9 +791,13 @@ extern "C++" {
791
791
# define ZEND_STATIC_ASSERT (c, m )
792
792
#endif
793
793
794
- #if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) /* C11 */ \
795
- || (defined(__cplusplus) && __cplusplus >= 201103L ) /* C++11 */
794
+ #if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) /* C11 */
796
795
typedef max_align_t zend_max_align_t ;
796
+ #elif (defined(__cplusplus) && __cplusplus >= 201103L) /* C++11 */
797
+ extern " C++" {
798
+ # include < cstddef>
799
+ }
800
+ typedef std::max_align_t zend_max_align_t ;
797
801
#else
798
802
typedef union {
799
803
char c;
You can’t perform that action at this time.
0 commit comments