From 0b7597b80b41b60843cee108305b8f7ceb535e8f Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Wed, 19 Mar 2014 17:45:35 +0900 Subject: [PATCH] reafactor noreturn macro --- include/picrin/util.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/picrin/util.h b/include/picrin/util.h index ec4b2a9d..f5971832 100644 --- a/include/picrin/util.h +++ b/include/picrin/util.h @@ -10,9 +10,11 @@ extern "C" { #endif #if __STDC_VERSION__ >= 201112L -# define noreturn _Noreturn +# include #elif __GNUC__ || __clang__ # define noreturn __attribute__((noreturn)) +#else +# define noreturn #endif #define FALLTHROUGH ((void)0)