diff --git a/include/stdnoreturn.h b/include/stdnoreturn.h index f022730e8a49..218a3a0ad111 100644 --- a/include/stdnoreturn.h +++ b/include/stdnoreturn.h @@ -26,11 +26,13 @@ * $FreeBSD$ */ -#ifndef noreturn - -#if !defined(__cplusplus) || __cplusplus < 201103L -#include -#define noreturn _Noreturn +#ifdef __cplusplus +#error " cannot be used in combination with C++11." #endif +#ifndef noreturn + +#include +#define noreturn _Noreturn + #endif /* !noreturn */