From 3c03bf91773b843770d62836c711c4af6609530e Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 17 Feb 2003 19:42:02 +0000 Subject: [PATCH] make NORETURN work in gcc --- stepmania/src/global.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/global.h b/stepmania/src/global.h index ebb39bdc3f..73176c31b5 100644 --- a/stepmania/src/global.h +++ b/stepmania/src/global.h @@ -78,7 +78,7 @@ using namespace std; * at the beginning). */ #if defined(_MSC_VER) #define NORETURN __declspec(noreturn) -#elif defined(__GNUC__) && defined(__attribute__) +#elif defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 5)) #define NORETURN __attribute__ ((__noreturn__)) #else #define NORETURN