diff options
author | Mike Pall <mike> | 2018-06-05 17:03:08 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2018-06-05 17:03:08 +0200 |
commit | c3c54ce1aef782823936808a75460e6b53aada2c (patch) | |
tree | 999dc989e25281bfc36ed8861d6f14b5d4e89786 /src/lj_profile.c | |
parent | a5a89ab586a3b5bb4f266949bbf3dc2b140e2374 (diff) | |
download | luajit-c3c54ce1aef782823936808a75460e6b53aada2c.tar.gz luajit-c3c54ce1aef782823936808a75460e6b53aada2c.tar.bz2 luajit-c3c54ce1aef782823936808a75460e6b53aada2c.zip |
Windows: Add UWP support, part 1.
Contributed by Ben Pye.
Diffstat (limited to '')
-rw-r--r-- | src/lj_profile.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lj_profile.c b/src/lj_profile.c index 116998e1..3223697f 100644 --- a/src/lj_profile.c +++ b/src/lj_profile.c | |||
@@ -247,7 +247,7 @@ static DWORD WINAPI profile_thread(void *psx) | |||
247 | { | 247 | { |
248 | ProfileState *ps = (ProfileState *)psx; | 248 | ProfileState *ps = (ProfileState *)psx; |
249 | int interval = ps->interval; | 249 | int interval = ps->interval; |
250 | #if LJ_TARGET_WINDOWS | 250 | #if LJ_TARGET_WINDOWS && !LJ_TARGET_UWP |
251 | ps->wmm_tbp(interval); | 251 | ps->wmm_tbp(interval); |
252 | #endif | 252 | #endif |
253 | while (1) { | 253 | while (1) { |
@@ -255,7 +255,7 @@ static DWORD WINAPI profile_thread(void *psx) | |||
255 | if (ps->abort) break; | 255 | if (ps->abort) break; |
256 | profile_trigger(ps); | 256 | profile_trigger(ps); |
257 | } | 257 | } |
258 | #if LJ_TARGET_WINDOWS | 258 | #if LJ_TARGET_WINDOWS && !LJ_TARGET_UWP |
259 | ps->wmm_tep(interval); | 259 | ps->wmm_tep(interval); |
260 | #endif | 260 | #endif |
261 | return 0; | 261 | return 0; |
@@ -264,9 +264,9 @@ static DWORD WINAPI profile_thread(void *psx) | |||
264 | /* Start profiling timer thread. */ | 264 | /* Start profiling timer thread. */ |
265 | static void profile_timer_start(ProfileState *ps) | 265 | static void profile_timer_start(ProfileState *ps) |
266 | { | 266 | { |
267 | #if LJ_TARGET_WINDOWS | 267 | #if LJ_TARGET_WINDOWS && !LJ_TARGET_UWP |
268 | if (!ps->wmm) { /* Load WinMM library on-demand. */ | 268 | if (!ps->wmm) { /* Load WinMM library on-demand. */ |
269 | ps->wmm = LoadLibraryExA("winmm.dll", NULL, 0); | 269 | ps->wmm = LJ_WIN_LOADLIBA("winmm.dll"); |
270 | if (ps->wmm) { | 270 | if (ps->wmm) { |
271 | ps->wmm_tbp = (WMM_TPFUNC)GetProcAddress(ps->wmm, "timeBeginPeriod"); | 271 | ps->wmm_tbp = (WMM_TPFUNC)GetProcAddress(ps->wmm, "timeBeginPeriod"); |
272 | ps->wmm_tep = (WMM_TPFUNC)GetProcAddress(ps->wmm, "timeEndPeriod"); | 272 | ps->wmm_tep = (WMM_TPFUNC)GetProcAddress(ps->wmm, "timeEndPeriod"); |