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

@@ -19,7 +19,7 @@
/* -- OS-specific functions ----------------------------------------------- */
#if defined(LUA_USE_WIN)
#if LJ_TARGET_WINDOWS
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
@@ -49,7 +49,7 @@ static void mcode_setprot(void *p, size_t sz, DWORD prot)
VirtualProtect(p, sz, prot, &oprot);
}
#elif defined(LUA_USE_POSIX)
#elif LJ_TARGET_POSIX
#include <sys/mman.h>
@@ -82,7 +82,7 @@ static void mcode_setprot(void *p, size_t sz, int prot)
#elif LJ_64
#error "Missing OS support for allocating executable memory"
#error "Missing OS support for explicit placement of executable memory"
#else