(svn r7735) - Fix: mingw compilation error (glx) custombridgeheads
authorKUDr
Mon, 01 Jan 2007 23:37:39 +0000
branchcustombridgeheads
changeset 5629 7cb2c58f4a7c
parent 5628 6975ccb4a7bd
child 5630 abc40525bd50
(svn r7735) - Fix: mingw compilation error (glx)
yapf/strapi.hpp
--- a/yapf/strapi.hpp	Mon Jan 01 23:18:33 2007 +0000
+++ b/yapf/strapi.hpp	Mon Jan 01 23:37:39 2007 +0000
@@ -52,7 +52,11 @@
 #if defined(_MSC_VER) && (_MSC_VER >= 1400) // VC 8.0 and above
 	return ::_vsnwprintf_s(buf, count, count - 1, fmt, args);
 #else // ! VC 8.0 and above
-	return ::vswprintf(buf, count, fmt, args);
+# if defined(_WIN32)
+	 return ::_vsnwprintf(buf, count, fmt, args);
+# else // !_WIN32
+	 return ::vswprintf(buf, count, fmt, args);
+# endif // !_WIN32
 #endif
 }