summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-01-08 16:24:44 +0000
committerDamien George <damien.p.george@gmail.com>2015-01-08 16:24:44 +0000
commit5b7aa294e02c792984750546ca118eeb7ba48b59 (patch)
treea253078af896f9a252a8d91124daf3ac088bd841 /py
parent19b3fea6a885d071a1216614ee3f766aba947cbf (diff)
py: Fix nlr mp_state_ctx symbol error for Mac.
Diffstat (limited to 'py')
-rw-r--r--py/nlrx64.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/py/nlrx64.S b/py/nlrx64.S
index 43298eba9..91889c93f 100644
--- a/py/nlrx64.S
+++ b/py/nlrx64.S
@@ -35,7 +35,11 @@
// the offset of nlr_top within mp_state_ctx_t
#define NLR_TOP_OFFSET (2 * 8)
+#if defined(__APPLE__) && defined(__MACH__)
+#define NLR_TOP (_mp_state_ctx + NLR_TOP_OFFSET)
+#else
#define NLR_TOP (mp_state_ctx + NLR_TOP_OFFSET)
+#endif
.file "nlr.s"
.text