From 70729de075bfe3138b05af91ecefcd5786bed5ac Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Tue, 26 Aug 2014 17:42:15 +0200 Subject: add static_assert and hide noreturn, alignas, alignof from C++ add static_assert and protect the other new C11 keyword macros with #ifndef __cplusplus so they don't conflict with C++ keywords. --- include/stdnoreturn.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/stdnoreturn.h') diff --git a/include/stdnoreturn.h b/include/stdnoreturn.h index 60d924a0..5c6aeeb0 100644 --- a/include/stdnoreturn.h +++ b/include/stdnoreturn.h @@ -1,5 +1,7 @@ #ifndef _STDNORETURN_H #define _STDNORETURN_H +#ifndef __cplusplus #include #define noreturn _Noreturn #endif +#endif -- cgit v1.2.1