From 276fa9bda99d12666441277afa39f81ae374437d Mon Sep 17 00:00:00 2001 From: Mat Date: Wed, 18 May 2016 23:30:52 +0200 Subject: [PATCH] Fixes non __GNUC__ compilation adds missing check for defined(__GNUC__) Reviewed-by: Richard Levitte Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/1094) --- include/openssl/e_os2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/openssl/e_os2.h b/include/openssl/e_os2.h index 1b1364dc0a..eee632352a 100644 --- a/include/openssl/e_os2.h +++ b/include/openssl/e_os2.h @@ -293,7 +293,7 @@ typedef unsigned __int64 uint64_t; # define ossl_inline inline # endif -# if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7) +# if defined(__GNUC__) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)) # define ossl_noreturn __attribute__((noreturn)) # elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L # define ossl_noreturn _Noreturn -- 2.25.1