2015.10.09 07:52 "[Tiff] Building with Visual Studio 2015", by Dietrich, Patrick
Dear all,
Building libtiff (4.0.6) with Visual Studio 2015, I have encountered the following problem:
Building fails due to definition of snprintf.
tif_config.vc.h states:
/* Visual Studio 2015 / VC 14 / MSVC 19.00 finally has snprintf() */
#if defined(_MSC_VER) && _MSC_VER < 1900
#define snprintf _snprintf
#endif
Changing this to
/* Visual Studio 2015 / VC 14 / MSVC 19.00 finally has snprintf() */
#if defined(_MSC_VER) && _MSC_VER < 1900
#define snprintf _snprintf
#else
#define HAVE_SNPRINTF
#endif
apparently solved the problem for me.
Regards,
Patrick