break: MinGW will misinterpret the invocation of vsnprintf in
Exception.cc as a definition of vsnprintf, and the rest of vncviewer
will call this function, resulting in a runtime hang.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3398
3789f03b-4d11-0410-bbf8-
ca57d06f2519
/* common-config.win.h - Platform-specific definitions for Windows */
#define HAVE_VSNPRINTF 1
+#ifdef _MSC_VER
+/* Older versions of MSVC lacks vsnprintf. MinGW has it, and if this
+ macro is defined before stdio.h is included, things will break. */
#define vsnprintf _vsnprintf
+#endif
#define HAVE_SNPRINTF 1
#define snprintf _snprintf