From f123b82f27a5a1fc83e698dc4afa01fa925bcb9c Mon Sep 17 00:00:00 2001 From: Lukas W Date: Mon, 16 Oct 2017 11:18:11 +0200 Subject: [PATCH] MSVC: Use Q_LIKELY and Q_UNLIKELY instead of gcc-specific extensions --- include/lmms_basics.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/lmms_basics.h b/include/lmms_basics.h index 8fe4325b8..205d2efd2 100644 --- a/include/lmms_basics.h +++ b/include/lmms_basics.h @@ -56,8 +56,8 @@ typedef uint16_t fx_ch_t; // FX-channel (0 to MAX_EFFECT_CHANNEL) typedef uint32_t jo_id_t; // (unique) ID of a journalling object // use for improved branch prediction -#define likely(x) __builtin_expect((x),1) -#define unlikely(x) __builtin_expect((x),0) +#define likely(x) Q_LIKELY(x) +#define unlikely(x) Q_UNLIKELY(x) template