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
This commit is contained in:
terminx 2019-05-19 03:55:06 +00:00 committed by Christoph Oelckers
parent efa3022d07
commit 6395909290

View file

@ -167,7 +167,7 @@
# define EXTERN_INLINE_HEADER extern __fastcall # define EXTERN_INLINE_HEADER extern __fastcall
#endif #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_TRUE(x) __builtin_expect(!!(x),1)
#define EDUKE32_PREDICT_FALSE(x) __builtin_expect(!!(x),0) #define EDUKE32_PREDICT_FALSE(x) __builtin_expect(!!(x),0)
#else #else