From 389737196f9677226f3fc0bc4e9f1d9469a61889 Mon Sep 17 00:00:00 2001 From: svdijk Date: Wed, 10 Sep 2014 17:41:34 +0000 Subject: [PATCH] Add some missing SDL2 includes when not using sdl2-config. git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1017 af15c1b1-3010-417e-b628-4374ebc0bcbd --- quakespasm/Quake/net_sdlnet.c | 5 +++++ quakespasm/Quake/pl_win.c | 5 +++++ quakespasm/Quake/sys_sdl_win.c | 4 ++++ 3 files changed, 14 insertions(+) diff --git a/quakespasm/Quake/net_sdlnet.c b/quakespasm/Quake/net_sdlnet.c index 51d0d6a6..ac0a466e 100644 --- a/quakespasm/Quake/net_sdlnet.c +++ b/quakespasm/Quake/net_sdlnet.c @@ -25,8 +25,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "net_defs.h" #include "net_sdlnet.h" #if defined(SDL_FRAMEWORK) || defined(NO_SDL_CONFIG) +#if defined(USE_SDL2) +#include +#include +#else #include #include +#endif #else #include "SDL.h" #include "SDL_net.h" diff --git a/quakespasm/Quake/pl_win.c b/quakespasm/Quake/pl_win.c index 05178a8c..ad6d579c 100644 --- a/quakespasm/Quake/pl_win.c +++ b/quakespasm/Quake/pl_win.c @@ -23,8 +23,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "quakedef.h" #include #if defined(SDL_FRAMEWORK) || defined(NO_SDL_CONFIG) +#if defined(USE_SDL2) +#include +#include +#else #include #include +#endif #else #include "SDL.h" #include "SDL_syswm.h" diff --git a/quakespasm/Quake/sys_sdl_win.c b/quakespasm/Quake/sys_sdl_win.c index d036e3e2..023f4db5 100644 --- a/quakespasm/Quake/sys_sdl_win.c +++ b/quakespasm/Quake/sys_sdl_win.c @@ -33,7 +33,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include #if defined(SDL_FRAMEWORK) || defined(NO_SDL_CONFIG) +#if defined(USE_SDL2) +#include +#else #include +#endif #else #include "SDL.h" #endif