Revision: 3953
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3953&view=rev
Author: mdboom
Date: 2007年10月16日 05:28:49 -0700 (2007年10月16日)
Log Message:
-----------
Fix build on Windows with MSVC .NET 2003
Modified Paths:
--------------
trunk/matplotlib/ttconv/ttutil.cpp
Modified: trunk/matplotlib/ttconv/ttutil.cpp
===================================================================
--- trunk/matplotlib/ttconv/ttutil.cpp 2007年10月15日 21:22:03 UTC (rev 3952)
+++ trunk/matplotlib/ttconv/ttutil.cpp 2007年10月16日 12:28:49 UTC (rev 3953)
@@ -32,14 +32,14 @@
va_start(arg_list, format);
char buffer[PRINTF_BUFFER_SIZE];
-#ifdef WIN32
+#if defined(WIN32) || defined(_MSC_VER)
int size = _vsnprintf(buffer, PRINTF_BUFFER_SIZE, format, arg_list);
#else
int size = vsnprintf(buffer, PRINTF_BUFFER_SIZE, format, arg_list);
#endif
if (size >= PRINTF_BUFFER_SIZE) {
char* buffer2 = (char*)malloc(size);
-#ifdef WIN32
+#if defined(WIN32) || defined(_MSC_VER)
_vsnprintf(buffer2, size, format, arg_list);
#else
vsnprintf(buffer2, size, format, arg_list);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.