From 981d972f3da3418e58da11515db6979d3f85a08a Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Fri, 10 Apr 2015 23:42:01 -0400 Subject: Add missing #includes. --- src/heretic/mn_menu.c | 1 + src/heretic/p_saveg.c | 2 ++ src/i_sdlmusic.c | 2 ++ src/setup/execute.c | 1 + src/setup/joystick.c | 1 + 5 files changed, 7 insertions(+) (limited to 'src') diff --git a/src/heretic/mn_menu.c b/src/heretic/mn_menu.c index b0a8d6b7..4cd52a0d 100644 --- a/src/heretic/mn_menu.c +++ b/src/heretic/mn_menu.c @@ -16,6 +16,7 @@ // MN_menu.c +#include #include #include "deh_str.h" diff --git a/src/heretic/p_saveg.c b/src/heretic/p_saveg.c index 3bd7c2b2..34e9e906 100644 --- a/src/heretic/p_saveg.c +++ b/src/heretic/p_saveg.c @@ -16,6 +16,8 @@ // P_tick.c +#include + #include "doomdef.h" #include "i_swap.h" #include "i_system.h" diff --git a/src/i_sdlmusic.c b/src/i_sdlmusic.c index 63a3467a..6acb528f 100644 --- a/src/i_sdlmusic.c +++ b/src/i_sdlmusic.c @@ -20,6 +20,8 @@ #include #include #include +#include + #include "SDL.h" #include "SDL_mixer.h" diff --git a/src/setup/execute.c b/src/setup/execute.c index bbb23c38..26f59fd8 100644 --- a/src/setup/execute.c +++ b/src/setup/execute.c @@ -18,6 +18,7 @@ #include #include #include +#include #include diff --git a/src/setup/joystick.c b/src/setup/joystick.c index 7f52c65d..d29e85ab 100644 --- a/src/setup/joystick.c +++ b/src/setup/joystick.c @@ -14,6 +14,7 @@ #include #include +#include #include "doomtype.h" #include "i_joystick.h" -- cgit v1.2.3 From fa3dc6f58921ec8299b1ec49913b75fda1659e74 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Fri, 10 Apr 2015 23:44:13 -0400 Subject: Strip out SDL_VERSION_ATLEAST #ifdef conditionals. These were added ages ago as hacks to make the code compile with SDL2, back when SDL2 was still in development. They aren't relevant any more and aren't useful - the actual SDL2 port is proceeding on sdl2-branch. --- src/i_video.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src') diff --git a/src/i_video.c b/src/i_video.c index 8fb1f178..d0140a0b 100644 --- a/src/i_video.c +++ b/src/i_video.c @@ -479,9 +479,7 @@ static int TranslateKey(SDL_keysym *sym) case SDLK_PAUSE: return KEY_PAUSE; -#if !SDL_VERSION_ATLEAST(1, 3, 0) case SDLK_EQUALS: return KEY_EQUALS; -#endif case SDLK_MINUS: return KEY_MINUS; @@ -495,10 +493,8 @@ static int TranslateKey(SDL_keysym *sym) case SDLK_LALT: case SDLK_RALT: -#if !SDL_VERSION_ATLEAST(1, 3, 0) case SDLK_LMETA: case SDLK_RMETA: -#endif return KEY_RALT; case SDLK_CAPSLOCK: return KEY_CAPSLOCK; @@ -829,11 +825,7 @@ static void CenterMouse(void) // Clear any relative movement caused by warping SDL_PumpEvents(); -#if SDL_VERSION_ATLEAST(1, 3, 0) - SDL_GetRelativeMouseState(0, NULL, NULL); -#else SDL_GetRelativeMouseState(NULL, NULL); -#endif } // @@ -847,11 +839,7 @@ static void I_ReadMouse(void) int x, y; event_t ev; -#if SDL_VERSION_ATLEAST(1, 3, 0) - SDL_GetRelativeMouseState(0, &x, &y); -#else SDL_GetRelativeMouseState(&x, &y); -#endif if (x != 0 || y != 0) { @@ -2023,9 +2011,7 @@ void I_InitGraphics(void) // has to be done before the call to SDL_SetVideoMode. I_InitWindowTitle(); -#if !SDL_VERSION_ATLEAST(1, 3, 0) I_InitWindowIcon(); -#endif // Warning to OS X users... though they might never see it :( #ifdef __MACOSX__ -- cgit v1.2.3