Don't redefine snprintf() for MSVC 14 in libtiff.

This MSVC version does add snprintf(), finally, and doesn't allow
pre-#defining it before including its stdio.h, so don't do this.

See #16854.
This commit is contained in:
Vadim Zeitlin
2015-05-08 02:16:53 +02:00
parent a31e8e4df6
commit 0a41db1140

View File

@@ -364,7 +364,10 @@
/* Set the native cpu bit order */
#define HOST_FILLORDER FILLORDER_LSB2MSB
#define snprintf _snprintf
/* MSVC 14 does have snprintf() and doesn't allow defining it */
#if !defined(_MSC_VER) || _MSC_VER < 1900
# define snprintf _snprintf
#endif
/* Define to 1 if your processor stores words with the most significant byte
first (like Motorola and SPARC, unlike Intel and VAX). */