Skip to content

Commit

Permalink
Fix build on Windows with MSVC .NET 2003
Browse files Browse the repository at this point in the history
svn path=/trunk/matplotlib/; revision=3953
  • Loading branch information
mdboom committed Oct 16, 2007
1 parent ca0ec7e commit 4b508c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ttconv/ttutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ void TTStreamWriter::printf(const char* format, ...)
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);
Expand Down

0 comments on commit 4b508c0

Please sign in to comment.