summaryrefslogtreecommitdiff
path: root/py/nlrx64.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/nlrx64.c')
-rw-r--r--py/nlrx64.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/py/nlrx64.c b/py/nlrx64.c
index c23fd8fc6..aeaacd50c 100644
--- a/py/nlrx64.c
+++ b/py/nlrx64.c
@@ -34,7 +34,11 @@
// x86-64 callee-save registers are:
// rbx, rbp, rsp, r12, r13, r14, r15
-#define NLR_OS_WINDOWS (defined(_WIN32) || defined(__CYGWIN__))
+#if defined(_WIN32) || defined(__CYGWIN__)
+#define NLR_OS_WINDOWS 1
+#else
+#define NLR_OS_WINDOWS 0
+#endif
__attribute__((used)) unsigned int nlr_push_tail(nlr_buf_t *nlr);