2016.05.09 06:48 "[Tiff] snprintf and MSVC 2015", by Mikhail

2016.05.09 12:36 "Re: [Tiff] snprintf and MSVC 2015", by Edward Lam

On 09/05/2016 2:48 AM, Mikhail wrote:

I had remove the snprintf declaration from `tiffiop.h` to get it to build in MSVC 2015 SP 2 (community).

Got rid of this:

#if !defined(HAVE_SNPRINTF) && !defined(HAVE__SNPRINTF)
#undef snprintf
#define snprintf _TIFF_snprintf_f

extern int snprintf(char* str, size_t size, const char* format, ...); #endif

So it appears that in 2015 now, MSVC has implemented snprintf(). Not only does this part need to be ifdef'ed out for _MSC_VER >= 1900, libport also needs to be correspondingly modified. :(

-Edward