Skip to content

Commit bce05ad

Browse files
authored
fix: put SDL_WndProc behind _WIN32 ifdef (Kenix3#423)
1 parent f35195c commit bce05ad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/graphic/Fast3D/gfx_sdl2.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ static void (*on_fullscreen_changed_callback)(bool is_now_fullscreen);
6262
static bool (*on_key_down_callback)(int scancode);
6363
static bool (*on_key_up_callback)(int scancode);
6464
static void (*on_all_keys_up_callback)(void);
65+
66+
#ifdef _WIN32
6567
LONG_PTR SDL_WndProc;
68+
#endif
6669

6770
const SDL_Scancode lus_to_sdl_table[] = {
6871
SDL_SCANCODE_UNKNOWN,

0 commit comments

Comments
 (0)