summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/assert.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/assert.h b/include/assert.h
index 1ee02a4a..e679adbf 100644
--- a/include/assert.h
+++ b/include/assert.h
@@ -8,7 +8,7 @@
#define assert(x) ((void)((x) || (__assert_fail(#x, __FILE__, __LINE__, __func__),0)))
#endif
-#ifndef __cplusplus
+#if __STDC_VERSION__ >= 201112L && !defined(__cplusplus)
#define static_assert _Static_assert
#endif