diff --git a/src/tiff/libtiff/tif_config.h b/src/tiff/libtiff/tif_config.h index 775a34b5f2..5683cf8c78 100644 --- a/src/tiff/libtiff/tif_config.h +++ b/src/tiff/libtiff/tif_config.h @@ -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). */