Skip to content

Commit e3d861d

Browse files
committed
making it luaffifb compatible
1 parent 2e4c900 commit e3d861d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cdefs.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ typedef enum {
198198
typedef int ( * SDL_ThreadFunction) (void *data);
199199
]]
200200

201-
if jit.os == 'Windows' then
201+
if ffi.os == 'Windows' then
202202
ffi.cdef[[
203203

204204
typedef uintptr_t (*pfnSDL_CurrentBeginThread) (void *, unsigned,
@@ -2516,7 +2516,7 @@ SDL_KMOD_GUI = (SDL_KMOD_LGUI|SDL_KMOD_RGUI)
25162516
]]
25172517

25182518
-- main
2519-
if jit.os == 'Windows' then
2519+
if ffi.os == 'Windows' then
25202520
ffi.cdef[[
25212521
int SDL_RegisterApp(char *name, Uint32 style,
25222522
void *hInst);

init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ register('condBroadcast', 'SDL_CondBroadcast')
128128
register('condWait', 'SDL_CondWait')
129129
register('condWaitTimeout', 'SDL_CondWaitTimeout')
130130

131-
if jit.os == 'Windows' then
131+
if ffi.os == 'Windows' then
132132
sdl.createThread =
133133
function(fn, name, data)
134134
return C.SDL_CreateThread(fn, name, data, ffi.C._beginthreadex, ffi.C._endthreadex)

0 commit comments

Comments
 (0)