diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/stdnoreturn.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/stdnoreturn.h b/include/stdnoreturn.h index f022730..218a3a0 100644 --- a/include/stdnoreturn.h +++ b/include/stdnoreturn.h @@ -26,11 +26,13 @@ * $FreeBSD$ */ +#ifdef __cplusplus +#error "<stdnoreturn.h> cannot be used in combination with C++11." +#endif + #ifndef noreturn -#if !defined(__cplusplus) || __cplusplus < 201103L #include <sys/cdefs.h> #define noreturn _Noreturn -#endif #endif /* !noreturn */ |