mirror of
https://github.com/yawut/SDL.git
synced 2026-07-07 20:25:06 -05:00
Max Waine SDL_mouse.c, if compiled for Windows, requires GetDoubleClickTime to compile (available from winuser.h). Without Vulkan present this fails to compile as the include chain for winuser.h is the following. SDL_mouse.c -> SDL_sysvideo.h -> SDL_vulkan_internal.h -> SDL_windows.h -> windows.h -> winuser.h. Problem is that SDL_vulkan_internal.h doesn't include SDL_windows.h if Vulkan isn't present, so under MinGW/GCC it will give a -Wimplicit-function-declaration warning for GetDoubleClickTime, and under MSVC fails to compile completely. The solution to this would be to simplify the include chain: including SDL_windows.h under the same condition as GetDoubleClickTime (#ifdef __WIN32__) in SDL_mouse.c (or another file that isn't quite so indirectly included). |
||
|---|---|---|
| .. | ||
| blank_cursor.h | ||
| default_cursor.h | ||
| scancodes_darwin.h | ||
| scancodes_linux.h | ||
| scancodes_windows.h | ||
| scancodes_xfree86.h | ||
| SDL_clipboardevents_c.h | ||
| SDL_clipboardevents.c | ||
| SDL_displayevents_c.h | ||
| SDL_displayevents.c | ||
| SDL_dropevents_c.h | ||
| SDL_dropevents.c | ||
| SDL_events_c.h | ||
| SDL_events.c | ||
| SDL_gesture_c.h | ||
| SDL_gesture.c | ||
| SDL_keyboard_c.h | ||
| SDL_keyboard.c | ||
| SDL_mouse_c.h | ||
| SDL_mouse.c | ||
| SDL_quit.c | ||
| SDL_sysevents.h | ||
| SDL_touch_c.h | ||
| SDL_touch.c | ||
| SDL_windowevents_c.h | ||
| SDL_windowevents.c | ||