diff options
author | Mike Pall <mike> | 2014-02-20 15:08:34 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2014-02-20 15:08:34 +0100 |
commit | 46ce03464b67935fb84ace1d0710a7f3cc62e132 (patch) | |
tree | 7d781669ec342edf85acdbf204b6415d1ede593a | |
parent | ec5546d1d20c640f024c05f230418580b1d416e1 (diff) | |
download | luajit-46ce03464b67935fb84ace1d0710a7f3cc62e132.tar.gz luajit-46ce03464b67935fb84ace1d0710a7f3cc62e132.tar.bz2 luajit-46ce03464b67935fb84ace1d0710a7f3cc62e132.zip |
Fix Xbox 360 build.
-rw-r--r-- | src/lj_profile.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lj_profile.c b/src/lj_profile.c index 59cba275..c11e3851 100644 --- a/src/lj_profile.c +++ b/src/lj_profile.c | |||
@@ -42,7 +42,12 @@ | |||
42 | #elif LJ_PROFILE_WTHREAD | 42 | #elif LJ_PROFILE_WTHREAD |
43 | 43 | ||
44 | #define WIN32_LEAN_AND_MEAN | 44 | #define WIN32_LEAN_AND_MEAN |
45 | #if LJ_TARGET_XBOX360 | ||
46 | #include <xtl.h> | ||
47 | #include <xbox.h> | ||
48 | #else | ||
45 | #include <windows.h> | 49 | #include <windows.h> |
50 | #endif | ||
46 | typedef unsigned int (WINAPI *WMM_TPFUNC)(unsigned int); | 51 | typedef unsigned int (WINAPI *WMM_TPFUNC)(unsigned int); |
47 | #define profile_lock(ps) EnterCriticalSection(&ps->lock) | 52 | #define profile_lock(ps) EnterCriticalSection(&ps->lock) |
48 | #define profile_unlock(ps) LeaveCriticalSection(&ps->lock) | 53 | #define profile_unlock(ps) LeaveCriticalSection(&ps->lock) |