Cleanup architecture, ABI and OS definitions.

This commit is contained in:
Mike Pall
2010-11-16 14:06:59 +01:00
parent 1de05d1147
commit 24baf77955
19 changed files with 113 additions and 72 deletions

View File

@@ -63,15 +63,11 @@
** EXT is mandatory on POSIX/x64 since the interpreter doesn't save r12/r13.
*/
#if defined(__GNUC__)
#if LJ_TARGET_X64 || defined(LUAJIT_UNWIND_EXTERNAL)
#if defined(__GNUC__) && (LJ_TARGET_X64 || defined(LUAJIT_UNWIND_EXTERNAL))
#define LJ_UNWIND_EXT 1
#endif
#elif defined(LUA_USE_WIN)
#if LJ_TARGET_X64
#elif LJ_TARGET_X64 && LJ_TARGET_WINDOWS
#define LJ_UNWIND_EXT 1
#endif
#endif
/* -- Error messages ------------------------------------------------------ */
@@ -604,7 +600,7 @@ static void err_raise_ext(int errcode)
}
#endif
#elif defined(_WIN64)
#elif LJ_TARGET_X64 && LJ_TARGET_WINDOWS
/*
** Someone in Redmond owes me several days of my life. A lot of this is