summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstijn <stijn@ignitron.net>2022-06-23 16:01:12 +0200
committerDamien George <damien@micropython.org>2022-07-18 23:24:46 +1000
commitc4adeb2e0873c32a14e49a62023cd99ccdf3d78f (patch)
treee97509cefa25a512eaa862efa2e6c804e275b861
parent5e20dcf925e89c75ad7ba7c947211db6d55a7274 (diff)
windows: Provide a definition for MP_ALWAYSINLINE.
-rw-r--r--mpy-cross/mpconfigport.h1
-rw-r--r--ports/windows/mpconfigport.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/mpy-cross/mpconfigport.h b/mpy-cross/mpconfigport.h
index 95922d04f..9d455c0af 100644
--- a/mpy-cross/mpconfigport.h
+++ b/mpy-cross/mpconfigport.h
@@ -135,6 +135,7 @@ typedef long mp_off_t;
#define MP_ENDIANNESS_LITTLE (1)
#define NORETURN __declspec(noreturn)
#define MP_NOINLINE __declspec(noinline)
+#define MP_ALWAYSINLINE __forceinline
#define MP_LIKELY(x) (x)
#define MP_UNLIKELY(x) (x)
#define MICROPY_PORT_CONSTANTS { MP_ROM_QSTR(MP_QSTR_dummy), MP_ROM_PTR(NULL) }
diff --git a/ports/windows/mpconfigport.h b/ports/windows/mpconfigport.h
index 39f8c0059..71814e214 100644
--- a/ports/windows/mpconfigport.h
+++ b/ports/windows/mpconfigport.h
@@ -256,6 +256,7 @@ typedef long mp_off_t;
#define NORETURN __declspec(noreturn)
#define MP_WEAK
#define MP_NOINLINE __declspec(noinline)
+#define MP_ALWAYSINLINE __forceinline
#define MP_LIKELY(x) (x)
#define MP_UNLIKELY(x) (x)
#define MICROPY_PORT_CONSTANTS { MP_ROM_QSTR(MP_QSTR_dummy), MP_ROM_PTR(NULL) } // can't have zero-sized array