summaryrefslogtreecommitdiff
path: root/src/lj_arch.h
diff options
context:
space:
mode:
authorMike Pall <mike>2012-06-22 11:36:58 +0200
committerMike Pall <mike>2012-06-22 11:36:58 +0200
commit2f844fc87ba0a26b3443b6a59d85a6080582c9b7 (patch)
treec221cf1f647ce683726f538caced0d33549cd6c3 /src/lj_arch.h
parent8b71ab108053c12bc2de9c1de0f786387a2b75e5 (diff)
downloadluajit2-2f844fc87ba0a26b3443b6a59d85a6080582c9b7.tar.gz
Fix build issues on Cygwin and MinGW with optional MSys.
Diffstat (limited to 'src/lj_arch.h')
-rw-r--r--src/lj_arch.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lj_arch.h b/src/lj_arch.h
index c9e9b307..a3d51542 100644
--- a/src/lj_arch.h
+++ b/src/lj_arch.h
@@ -122,7 +122,11 @@
#define LJ_ARCH_BITS 32
#define LJ_ARCH_ENDIAN LUAJIT_LE
#define LJ_ARCH_HASFPU 1
-#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_X86 1
#define LJ_TARGET_X86ORX64 1
#define LJ_TARGET_EHRETREG 0