Fix msvc compilation issue in cairo-compiler-private.h

__WIN32__ is not a standard define set by MSVC; we have to check for
__WIN32__ (for mingw/gcc) and for _MSC_VER, for MSVC.
This commit is contained in:
Vladimir Vukicevic 2008-03-03 21:16:12 -08:00 committed by Vladimir Vukicevic
parent 4588b016d3
commit 4a1f65b63e

View file

@ -111,7 +111,7 @@ CAIRO_BEGIN_DECLS
#define __attribute__(x)
#endif
#ifdef __WIN32__
#if defined(__WIN32__) || defined(_MSC_VER)
#define snprintf _snprintf
#endif