diff options
Diffstat (limited to '')
-rw-r--r-- | include/stdnoreturn.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/stdnoreturn.h b/include/stdnoreturn.h index fd54d1b..19c6016 100644 --- a/include/stdnoreturn.h +++ b/include/stdnoreturn.h @@ -20,12 +20,15 @@ #include <slibc/version.h> +#include <slibc/features.h> + + /** * Specifies that a function never returns, that is, * the process exits before the function returns. */ -#if __STDC_VERSION__ < 201112L && defined(__GNUC__) +#if !defined(__C11__) && defined(__GNUC__) # define _Noreturn __attribute__((noreturn)) #endif #define noreturn _Noreturn |