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.
1 parent 86aaded commit 0f889c6Copy full SHA for 0f889c6
Zend/zend_portability.h
@@ -761,7 +761,9 @@ extern "C++" {
761
/** @deprecated */
762
#define ZEND_CGG_DIAGNOSTIC_IGNORED_END ZEND_DIAGNOSTIC_IGNORED_END
763
764
-#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) /* C11 */
+#if defined(__cplusplus)
765
+# define ZEND_STATIC_ASSERT(c, m) static_assert((c), m)
766
+#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) /* C11 */
767
# define ZEND_STATIC_ASSERT(c, m) _Static_assert((c), m)
768
#else
769
# define ZEND_STATIC_ASSERT(c, m)
0 commit comments