From 9aa85c4eb2f5e4764952a25b21de2015a2fbe42b Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Mon, 16 Jun 2014 01:44:38 +0900 Subject: [PATCH] __builtin_unreachable appeared in gcc 4.5.0 --- include/picrin/util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/picrin/util.h b/include/picrin/util.h index 1ad80950..f2f5e719 100644 --- a/include/picrin/util.h +++ b/include/picrin/util.h @@ -28,7 +28,7 @@ extern "C" { # define GENSYM(x) GENSYM1__(__LINE__,x) #endif -#if __GNUC__ || __clang__ +#if GCC_VERSION >= 40500 || __clang__ # define UNREACHABLE() (__builtin_unreachable()) #else # include