mirror of
https://github.com/kichikuou/xsystem35-sdl2.git
synced 2026-10-01 03:08:14 +03:00
Limit SDL2 SysWM header to Windows users
This commit is contained in:
@@ -43,6 +43,12 @@
|
||||
#include "hacks.h"
|
||||
#include "volume.h"
|
||||
|
||||
#if defined(_WIN32) && XSYSTEM35_SDL_VERSION == 2
|
||||
#include <SDL_syswm.h>
|
||||
// Windows defines this name too; the key table below uses input.h's enum.
|
||||
#undef KEY_EXECUTE
|
||||
#endif
|
||||
|
||||
static void get_event(void);
|
||||
static void keyEventProsess(SDL_KeyboardEvent *e, bool pressed);
|
||||
|
||||
|
||||
@@ -11,9 +11,6 @@
|
||||
|
||||
#if XSYSTEM35_SDL_VERSION == 2
|
||||
#include <SDL.h>
|
||||
#ifdef _WIN32
|
||||
#include <SDL_syswm.h>
|
||||
#endif
|
||||
#elif XSYSTEM35_SDL_VERSION == 3
|
||||
#include <SDL3/SDL.h>
|
||||
#else
|
||||
|
||||
@@ -4,6 +4,10 @@
|
||||
#include <windows.h>
|
||||
#include "sdl_compat.h"
|
||||
|
||||
#if XSYSTEM35_SDL_VERSION == 2
|
||||
#include <SDL_syswm.h>
|
||||
#endif
|
||||
|
||||
static inline HWND win_get_hwnd(SDL_Window *window)
|
||||
{
|
||||
#if XSYSTEM35_SDL_VERSION == 2
|
||||
|
||||
Reference in New Issue
Block a user