Bläddra i källkod

Hopefully fixed the vsnprintf incompatibility

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10645 54d463be-8e91-2dee-dedb-b68131a5f0ec
ultramage 18 år sedan
förälder
incheckning
c56d51dbcb
2 ändrade filer med 5 tillägg och 0 borttagningar
  1. 2 0
      Changelog-Trunk.txt
  2. 3 0
      src/common/cbasetypes.h

+ 2 - 0
Changelog-Trunk.txt

@@ -3,6 +3,8 @@ Date	Added
 AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
+2007/05/29
+	* Hopefully fixed the vsnprintf incompatibility
 2007/05/28
 	* Fixed an infinite char-server loop on the map connection [ultramage]
 	* RFIFOREST returns 0 when the session is eof (input data is implicitly 

+ 3 - 0
src/common/cbasetypes.h

@@ -185,6 +185,9 @@ typedef unsigned long long	uint64;
 #define strncasecmp			strnicmp
 #define strncmpi			strnicmp
 #define snprintf			_snprintf
+#if defined(_MSC_VER) && _MSC_VER < 1400
+#define vsnprintf			_vsnprintf
+#endif
 #else
 #define strcmpi				strcasecmp
 #define stricmp				strcasecmp