py: Fix nlr mp_state_ctx symbol error for Mac.

pull/1051/head
Damien George 2015-01-08 16:24:44 +00:00
rodzic 19b3fea6a8
commit 5b7aa294e0
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -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