summaryrefslogtreecommitdiff
path: root/py/nlrx86.c
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2018-07-12 14:13:51 -0400
committerDan Halbert <halbert@halwitz.org>2018-07-12 14:13:51 -0400
commit0d27f4d9a66dcb47b545e715d1833094b0c7b484 (patch)
tree14c17d103d0dfddae7f031aa4fdb004c5ebca2e1 /py/nlrx86.c
parent7c219600a246d8956d0b23ea3f5d125a820e6b6a (diff)
continued WIP: almost compiling
Diffstat (limited to 'py/nlrx86.c')
-rw-r--r--py/nlrx86.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/nlrx86.c b/py/nlrx86.c
index 59b97d8ee..4900a4c0d 100644
--- a/py/nlrx86.c
+++ b/py/nlrx86.c
@@ -26,14 +26,14 @@
#include "py/mpstate.h"
-#if MICROPY_NLR_X86
+#if defined(MICROPY_NLR_X86) && MICROPY_NLR_X86
#undef nlr_push
// For reference, x86 callee save regs are:
// ebx, esi, edi, ebp, esp, eip
-#if MICROPY_NLR_OS_WINDOWS
+#if defined(MICROPY_NLR_OS_WINDOWS) && MICROPY_NLR_OS_WINDOWS
unsigned int nlr_push_tail(nlr_buf_t *nlr) asm("nlr_push_tail");
#else
__attribute__((used)) unsigned int nlr_push_tail(nlr_buf_t *nlr);