diff --git a/headers/posix/assert.h b/headers/posix/assert.h index 0f7bb74548..bf3df7f603 100644 --- a/headers/posix/assert.h +++ b/headers/posix/assert.h @@ -52,6 +52,7 @@ extern void __assert_perror_fail(int error, const char *file, # define assert(condition) ((void)0) #endif -#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L && !defined(static_assert) +#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L && __STDC_VERSION__ <= 201710L \ + && !defined(static_assert) && !defined(__cplusplus) # define static_assert _Static_assert #endif