[Scummvm-cvs-logs] SF.net SVN: scummvm:[34380] residual/trunk/common/sys.h

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Sat Sep 6 10:09:53 CEST 2008


Revision: 34380
          http://scummvm.svn.sourceforge.net/scummvm/?rev=34380&view=rev
Author:   thebluegr
Date:     2008-09-06 08:09:51 +0000 (Sat, 06 Sep 2008)

Log Message:
-----------
Fix for bug #2095663 - "RESIDUAL: missing vsnprintf in MSVC7.x, doesn't compile"

Modified Paths:
--------------
    residual/trunk/common/sys.h

Modified: residual/trunk/common/sys.h
===================================================================
--- residual/trunk/common/sys.h	2008-09-06 07:06:41 UTC (rev 34379)
+++ residual/trunk/common/sys.h	2008-09-06 08:09:51 UTC (rev 34380)
@@ -46,7 +46,13 @@
 #pragma warning( disable : 4068 ) // turn off "unknown pragma" warning
 #pragma warning( disable : 4244 ) // turn off "conversion type" warning
 #pragma warning( disable : 4250 ) // turn off "inherits via dominance" warning
+
+// vsnprintf is already defined in Visual Studio 2008
+#if (_MSC_VER < 1500)
+	#define vsnprintf _vsnprintf
 #endif
+		
+#endif
 
 #ifndef LOCAL_PI
 #define LOCAL_PI 3.14159265358979323846


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list