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

This commit is contained in:
stijn 2015-01-04 09:46:47 +01:00 committed by Paul Sokolovsky
parent ed3b20aae8
commit 51af362e31
1 changed files with 2 additions and 0 deletions

View File

@ -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