aboutsummaryrefslogtreecommitdiff
path: root/src/lj_err.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_err.c')
-rw-r--r--src/lj_err.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/lj_err.c b/src/lj_err.c
index 5a6aac83..8a80c9c8 100644
--- a/src/lj_err.c
+++ b/src/lj_err.c
@@ -63,15 +63,11 @@
63** EXT is mandatory on POSIX/x64 since the interpreter doesn't save r12/r13. 63** EXT is mandatory on POSIX/x64 since the interpreter doesn't save r12/r13.
64*/ 64*/
65 65
66#if defined(__GNUC__) 66#if defined(__GNUC__) && (LJ_TARGET_X64 || defined(LUAJIT_UNWIND_EXTERNAL))
67#if LJ_TARGET_X64 || defined(LUAJIT_UNWIND_EXTERNAL)
68#define LJ_UNWIND_EXT 1 67#define LJ_UNWIND_EXT 1
69#endif 68#elif LJ_TARGET_X64 && LJ_TARGET_WINDOWS
70#elif defined(LUA_USE_WIN)
71#if LJ_TARGET_X64
72#define LJ_UNWIND_EXT 1 69#define LJ_UNWIND_EXT 1
73#endif 70#endif
74#endif
75 71
76/* -- Error messages ------------------------------------------------------ */ 72/* -- Error messages ------------------------------------------------------ */
77 73
@@ -604,7 +600,7 @@ static void err_raise_ext(int errcode)
604} 600}
605#endif 601#endif
606 602
607#elif defined(_WIN64) 603#elif LJ_TARGET_X64 && LJ_TARGET_WINDOWS
608 604
609/* 605/*
610** Someone in Redmond owes me several days of my life. A lot of this is 606** Someone in Redmond owes me several days of my life. A lot of this is