summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorstijn <stinos@zoho.com>2015-01-04 09:46:47 +0100
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-01-04 13:29:02 +0200
commit51af362e31263a1aabbc179489bc99618cd4c6f0 (patch)
tree3ea245ea5a31d9d966916ccefed0701d35ec98f7
parented3b20aae82c5da7b1cb0477a866231523a31b02 (diff)
downloadmicropython-51af362e31263a1aabbc179489bc99618cd4c6f0.tar.gz
micropython-51af362e31263a1aabbc179489bc99618cd4c6f0.zip
msvc: Define no-op MP_LIKELY/UNLIKELY since there's no __builtin_expect
-rw-r--r--windows/mpconfigport.h2
1 files changed, 2 insertions, 0 deletions
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