Revision: 3953
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3953&view=rev
Author:   mdboom
Date:     2007-10-16 05:28:49 -0700 (Tue, 16 Oct 2007)

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.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to