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:
@@ -364,7 +364,10 @@
|
|||||||
/* Set the native cpu bit order */
|
/* Set the native cpu bit order */
|
||||||
#define HOST_FILLORDER FILLORDER_LSB2MSB
|
#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
|
/* Define to 1 if your processor stores words with the most significant byte
|
||||||
first (like Motorola and SPARC, unlike Intel and VAX). */
|
first (like Motorola and SPARC, unlike Intel and VAX). */
|
||||||
|
Reference in New Issue
Block a user