Commit 51af362e authored by stijn's avatar stijn Committed by Paul Sokolovsky
Browse files

msvc: Define no-op MP_LIKELY/UNLIKELY since there's no __builtin_expect

parent ed3b20aa
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment