Skip to content

Commit 51af362

Browse files
stinospfalcon
authored andcommitted
msvc: Define no-op MP_LIKELY/UNLIKELY since there's no __builtin_expect
1 parent ed3b20a commit 51af362

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

windows/mpconfigport.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ void msec_sleep(double msec);
143143
// CL specific overrides from mpconfig
144144

145145
#define NORETURN __declspec(noreturn)
146+
#define MP_LIKELY(x) (x)
147+
#define MP_UNLIKELY(x) (x)
146148
#define MICROPY_PORT_CONSTANTS { "dummy", 0 } //can't have zero-sized array
147149
#ifdef _WIN64
148150
#define MP_SSIZE_MAX _I64_MAX

0 commit comments

Comments
 (0)