Fix Xbox 360 build.

This commit is contained in:
Mike Pall 2014-02-20 15:08:34 +01:00
parent ec5546d1d2
commit 46ce03464b

View File

@ -42,7 +42,12 @@
#elif LJ_PROFILE_WTHREAD #elif LJ_PROFILE_WTHREAD
#define WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN
#if LJ_TARGET_XBOX360
#include <xtl.h>
#include <xbox.h>
#else
#include <windows.h> #include <windows.h>
#endif
typedef unsigned int (WINAPI *WMM_TPFUNC)(unsigned int); typedef unsigned int (WINAPI *WMM_TPFUNC)(unsigned int);
#define profile_lock(ps) EnterCriticalSection(&ps->lock) #define profile_lock(ps) EnterCriticalSection(&ps->lock)
#define profile_unlock(ps) LeaveCriticalSection(&ps->lock) #define profile_unlock(ps) LeaveCriticalSection(&ps->lock)