sdl2_frt/src/events
Sam Lantinga b8bd0aa0bd Fixed bug 4450 - SDL_mouse.c fails to compile with CMake generated Visual Studio files if SDL_VIDEO_VULKAN 0/undefined
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).
2019-03-16 19:07:34 -07:00
..
blank_cursor.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
default_cursor.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
scancodes_darwin.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
scancodes_linux.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
scancodes_windows.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
scancodes_xfree86.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_clipboardevents_c.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_clipboardevents.c Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_displayevents_c.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_displayevents.c Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_dropevents_c.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_dropevents.c Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_events_c.h Fix compiler warnings. 2019-03-16 00:08:19 -04:00
SDL_events.c Fix compiler warnings. 2019-03-16 00:08:19 -04:00
SDL_gesture_c.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_gesture.c Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_keyboard_c.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_keyboard.c Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_mouse_c.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_mouse.c Fixed bug 4450 - SDL_mouse.c fails to compile with CMake generated Visual Studio files if SDL_VIDEO_VULKAN 0/undefined 2019-03-16 19:07:34 -07:00
SDL_quit.c events: Disable all the signal-handling code on platforms without support. 2019-03-15 16:13:19 -04:00
SDL_sysevents.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_touch_c.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_touch.c Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_windowevents_c.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_windowevents.c Updated copyright for 2019 2019-01-04 22:01:14 -08:00