summaryrefslogtreecommitdiff
path: root/py/nlr.h
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/nlr.h
parent7c219600a246d8956d0b23ea3f5d125a820e6b6a (diff)
continued WIP: almost compiling
Diffstat (limited to 'py/nlr.h')
-rw-r--r--py/nlr.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/py/nlr.h b/py/nlr.h
index 90595a12d..802f5f39a 100644
--- a/py/nlr.h
+++ b/py/nlr.h
@@ -35,7 +35,8 @@
#include "py/mpconfig.h"
// If MICROPY_NLR_SETJMP is not enabled then auto-detect the machine arch
-#if !MICROPY_NLR_SETJMP
+#if !defined(MICROPY_NLR_SETJMP) || !MICROPY_NLR_SETJMP
+#define MICROPY_NLR_SETJMP (0)
// A lot of nlr-related things need different treatment on Windows
#if defined(_WIN32) || defined(__CYGWIN__)
#define MICROPY_NLR_OS_WINDOWS 1