Revision: 3696
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3696&view=rev
Author:   cmoad
Date:     2007-08-10 05:53:21 -0700 (Fri, 10 Aug 2007)

Log Message:
-----------
added win32 checks for vsnprintf which is _vsnprintf on windows

Modified Paths:
--------------
    trunk/matplotlib/ttconv/ttutil.cpp

Modified: trunk/matplotlib/ttconv/ttutil.cpp
===================================================================
--- trunk/matplotlib/ttconv/ttutil.cpp  2007-08-09 15:14:59 UTC (rev 3695)
+++ trunk/matplotlib/ttconv/ttutil.cpp  2007-08-10 12:53:21 UTC (rev 3696)
@@ -32,10 +32,18 @@
   va_start(arg_list, format);
   char buffer[PRINTF_BUFFER_SIZE];
 
+#ifdef WIN32
+  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
+    _vsnprintf(buffer2, size, format, arg_list);
+#else
     vsnprintf(buffer2, size, format, arg_list);
+#endif
     free(buffer2);
   } else {
     this->write(buffer);


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
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to