From 639590929082d410979ae30af379eb03c5f988ec Mon Sep 17 00:00:00 2001 From: terminx Date: Sun, 19 May 2019 03:55:06 +0000 Subject: [PATCH] Add preprocessor check for __OPTIMIZE__ to EDUKE32_PREDICT_TRUE and EDUKE32_PREDICT_FALSE git-svn-id: https://svn.eduke32.com/eduke32@7659 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/include/compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/build/include/compat.h b/source/build/include/compat.h index b5186304d..c4bddd1bb 100644 --- a/source/build/include/compat.h +++ b/source/build/include/compat.h @@ -167,7 +167,7 @@ # define EXTERN_INLINE_HEADER extern __fastcall #endif -#if defined __GNUC__ || __has_builtin(__builtin_expect) +#if defined(__OPTIMIZE__) && (defined __GNUC__ || __has_builtin(__builtin_expect)) #define EDUKE32_PREDICT_TRUE(x) __builtin_expect(!!(x),1) #define EDUKE32_PREDICT_FALSE(x) __builtin_expect(!!(x),0) #else