Skip to content

Commit 4b508c0

Browse files
committed
Fix build on Windows with MSVC .NET 2003
svn path=/trunk/matplotlib/; revision=3953
1 parent ca0ec7e commit 4b508c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ttconv/ttutil.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ void TTStreamWriter::printf(const char* format, ...)
3232
va_start(arg_list, format);
3333
char buffer[PRINTF_BUFFER_SIZE];
3434

35-
#ifdef WIN32
35+
#if defined(WIN32) || defined(_MSC_VER)
3636
int size = _vsnprintf(buffer, PRINTF_BUFFER_SIZE, format, arg_list);
3737
#else
3838
int size = vsnprintf(buffer, PRINTF_BUFFER_SIZE, format, arg_list);
3939
#endif
4040
if (size >= PRINTF_BUFFER_SIZE) {
4141
char* buffer2 = (char*)malloc(size);
42-
#ifdef WIN32
42+
#if defined(WIN32) || defined(_MSC_VER)
4343
_vsnprintf(buffer2, size, format, arg_list);
4444
#else
4545
vsnprintf(buffer2, size, format, arg_list);

0 commit comments

Comments
 (0)