ref: 7c2cc3e01f5c5384427773fc824fdd5eee1c0b23
parent: 75ce08abd69708b2219bbf92d10425ca6d50c711
author: Simon Howard <[email protected]>
date: Thu Oct 18 19:44:56 EDT 2007
#define snprintf, vsnprintf to _snprintf, _vsnprintf in MSVC. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 977
--- 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
--- 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"
--- 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"