From 54188e4591ee1258f313d60ae3a1381828e1891b Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 30 Jul 2019 04:06:21 +0200 Subject: [PATCH] Fix prboom for MSVC 2003 --- deps/fluidsynth/src/utils/fluidsynth_priv.h | 3 +-- src/g_game.c | 1 + src/m_misc.c | 1 + src/p_checksum.c | 4 ++++ 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/deps/fluidsynth/src/utils/fluidsynth_priv.h b/deps/fluidsynth/src/utils/fluidsynth_priv.h index e46bc44..3628347 100644 --- a/deps/fluidsynth/src/utils/fluidsynth_priv.h +++ b/deps/fluidsynth/src/utils/fluidsynth_priv.h @@ -122,8 +122,7 @@ #ifdef MINGW32 #include -#define snprintf _snprintf -#define vsnprintf _vsnprintf +#include #define DSOUND_SUPPORT 1 #define WINMIDI_SUPPORT 1 diff --git a/src/g_game.c b/src/g_game.c index 92db013..476fe1e 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -43,6 +43,7 @@ #define W_OK 2 /* Check for write permission */ #define R_OK 4 /* Check for read permission */ #include +#include #endif #include diff --git a/src/m_misc.c b/src/m_misc.c index 7b8feb3..b35b8e2 100644 --- a/src/m_misc.c +++ b/src/m_misc.c @@ -41,6 +41,7 @@ #include #ifdef _MSC_VER #include +#include #endif #include #include diff --git a/src/p_checksum.c b/src/p_checksum.c index 99766ef..155a7f3 100644 --- a/src/p_checksum.c +++ b/src/p_checksum.c @@ -9,6 +9,10 @@ #include "doomstat.h" /* players{,ingame} */ #include "lprintf.h" +#ifdef _MSC_VER +#include +#endif + /* forward decls */ void checksum_gamestate(int tic);