From ef8b31b527e58489d25db9b2fe043c631ee7dc13 Mon Sep 17 00:00:00 2001 From: Paulo Matos Date: Fri, 22 Feb 2019 16:44:36 +0100 Subject: [PATCH] Use noreturn attribute only when MZ_DECLARE_NORETURN --- racket/src/racket/include/scheme.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/racket/src/racket/include/scheme.h b/racket/src/racket/include/scheme.h index 9cebae3bc9..0ce18ceaa9 100644 --- a/racket/src/racket/include/scheme.h +++ b/racket/src/racket/include/scheme.h @@ -252,10 +252,7 @@ extern "C" { #endif -/* The reason we need two preprocessor variables is that, in gcc/clang the - function attribute comes after the function declaration. However, - in MSVC the function attribute comes before the function declaration. */ -#ifdef __GNUC__ +#if defined(MZ_DECLARE_NORETURN) && defined(__GNUC__) #define NORETURN __attribute__((__noreturn__)) #else #define NORETURN