diff --git a/headers/posix/assert.h b/headers/posix/assert.h index 628cd4c843..0f7bb74548 100644 --- a/headers/posix/assert.h +++ b/headers/posix/assert.h @@ -51,3 +51,7 @@ extern void __assert_perror_fail(int error, const char *file, #else /* NDEBUG */ # define assert(condition) ((void)0) #endif + +#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L && !defined(static_assert) +# define static_assert _Static_assert +#endif