Fix Cygwin support. Note: this is not a supported target.

Contributed by Yaakov Selkowitz.
This commit is contained in:
Mike Pall
2015-09-20 19:17:02 +02:00
parent 8715ae65c1
commit 076d625dc6
3 changed files with 10 additions and 4 deletions

View File

@@ -151,7 +151,11 @@
#define LJ_ARCH_NAME "x64"
#define LJ_ARCH_BITS 64
#define LJ_ARCH_ENDIAN LUAJIT_LE
#define LJ_ABI_WIN LJ_TARGET_WINDOWS
#if LJ_TARGET_WINDOWS || __CYGWIN__
#define LJ_ABI_WIN 1
#else
#define LJ_ABI_WIN 0
#endif
#define LJ_TARGET_X64 1
#define LJ_TARGET_X86ORX64 1
#define LJ_TARGET_EHRETREG 0