From 51af362e31263a1aabbc179489bc99618cd4c6f0 Mon Sep 17 00:00:00 2001 From: stijn Date: Sun, 4 Jan 2015 09:46:47 +0100 Subject: [PATCH] msvc: Define no-op MP_LIKELY/UNLIKELY since there's no __builtin_expect --- windows/mpconfigport.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/windows/mpconfigport.h b/windows/mpconfigport.h index d4d66109de..939010343a 100644 --- a/windows/mpconfigport.h +++ b/windows/mpconfigport.h @@ -143,6 +143,8 @@ void msec_sleep(double msec); // CL specific overrides from mpconfig #define NORETURN __declspec(noreturn) +#define MP_LIKELY(x) (x) +#define MP_UNLIKELY(x) (x) #define MICROPY_PORT_CONSTANTS { "dummy", 0 } //can't have zero-sized array #ifdef _WIN64 #define MP_SSIZE_MAX _I64_MAX