We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b48faee + f1a77c0 commit 2c42479Copy full SHA for 2c42479
Zend/zend_portability.h
@@ -799,7 +799,9 @@ extern "C++" {
799
/** @deprecated */
800
#define ZEND_CGG_DIAGNOSTIC_IGNORED_END ZEND_DIAGNOSTIC_IGNORED_END
801
802
-#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) /* C11 */
+#if defined(__cplusplus)
803
+# define ZEND_STATIC_ASSERT(c, m) static_assert((c), m)
804
+#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) /* C11 */
805
# define ZEND_STATIC_ASSERT(c, m) _Static_assert((c), m)
806
#else
807
# define ZEND_STATIC_ASSERT(c, m)
0 commit comments