diff options
author | Mike Pall <mike> | 2010-11-16 14:06:59 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2010-11-16 15:03:40 +0100 |
commit | 24baf7795574ca40be2c2be8da8cd483551a546a (patch) | |
tree | e3e2629947dc8c8bd2d25d7a6c9ab7db54f814a1 /src/lj_mcode.c | |
parent | 1de05d1147a6fe69b55111d605eccdedc8c6c993 (diff) | |
download | luajit-24baf7795574ca40be2c2be8da8cd483551a546a.tar.gz luajit-24baf7795574ca40be2c2be8da8cd483551a546a.tar.bz2 luajit-24baf7795574ca40be2c2be8da8cd483551a546a.zip |
Cleanup architecture, ABI and OS definitions.
Diffstat (limited to 'src/lj_mcode.c')
-rw-r--r-- | src/lj_mcode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lj_mcode.c b/src/lj_mcode.c index 9b1cae00..72002175 100644 --- a/src/lj_mcode.c +++ b/src/lj_mcode.c | |||
@@ -19,7 +19,7 @@ | |||
19 | 19 | ||
20 | /* -- OS-specific functions ----------------------------------------------- */ | 20 | /* -- OS-specific functions ----------------------------------------------- */ |
21 | 21 | ||
22 | #if defined(LUA_USE_WIN) | 22 | #if LJ_TARGET_WINDOWS |
23 | 23 | ||
24 | #define WIN32_LEAN_AND_MEAN | 24 | #define WIN32_LEAN_AND_MEAN |
25 | #include <windows.h> | 25 | #include <windows.h> |
@@ -49,7 +49,7 @@ static void mcode_setprot(void *p, size_t sz, DWORD prot) | |||
49 | VirtualProtect(p, sz, prot, &oprot); | 49 | VirtualProtect(p, sz, prot, &oprot); |
50 | } | 50 | } |
51 | 51 | ||
52 | #elif defined(LUA_USE_POSIX) | 52 | #elif LJ_TARGET_POSIX |
53 | 53 | ||
54 | #include <sys/mman.h> | 54 | #include <sys/mman.h> |
55 | 55 | ||
@@ -82,7 +82,7 @@ static void mcode_setprot(void *p, size_t sz, int prot) | |||
82 | 82 | ||
83 | #elif LJ_64 | 83 | #elif LJ_64 |
84 | 84 | ||
85 | #error "Missing OS support for allocating executable memory" | 85 | #error "Missing OS support for explicit placement of executable memory" |
86 | 86 | ||
87 | #else | 87 | #else |
88 | 88 | ||