aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/assert.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/assert.h b/include/assert.h
index 9dd8f4c..c3d69f3 100644
--- a/include/assert.h
+++ b/include/assert.h
@@ -71,6 +71,7 @@
+#if defined(__C11__)
/**
* A compile-time error should occur if the expression
* evaluates to zero.
@@ -78,7 +79,8 @@
* @param expression:scalar The expression to evaluate.
* @param message:const char* The message to print on error.
*/
-#define static_assert _Static_assert
+# define static_assert _Static_assert
+#endif
/**