diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/doomdef.h | 6 | ||||
-rw-r--r-- | src/net_loop.c | 1 | ||||
-rw-r--r-- | src/net_sdl.c | 1 |
3 files changed, 6 insertions, 2 deletions
diff --git a/src/doomdef.h b/src/doomdef.h index 08d06422..fb944445 100644 --- a/src/doomdef.h +++ b/src/doomdef.h @@ -31,11 +31,13 @@ #include <stdio.h> #include <string.h> -// Portable header to provide the strcasecmp/strncasecmp functions. -// On Windows, stricmp/strnicmp is used as a replacement. +// #define macros to provide functions missing in Windows. +// Outside Windows, we use strings.h for str[n]casecmp. #ifdef _WIN32 +#define snprintf _snprintf +#define vsnprintf _vsnprintf #define strcasecmp stricmp #define strncasecmp strnicmp diff --git a/src/net_loop.c b/src/net_loop.c index d3d517d1..890dcbf2 100644 --- a/src/net_loop.c +++ b/src/net_loop.c @@ -26,6 +26,7 @@ #include <stdio.h> #include <stdlib.h> +#include "doomdef.h" #include "i_system.h" #include "net_defs.h" #include "net_loop.h" diff --git a/src/net_sdl.c b/src/net_sdl.c index 3d737d15..92606fac 100644 --- a/src/net_sdl.c +++ b/src/net_sdl.c @@ -27,6 +27,7 @@ #include <string.h> #include <stdio.h> +#include "doomdef.h" #include "i_system.h" #include "m_argv.h" #include "net_defs.h" |