2016.05.10 13:08 "Re: [Tiff] snprintf and MSVC 2015", by Bob Friesenhahn
On 09/05/2016 7:01 PM, Roger Leigh wrote:
OK. For clarity and consistency with the other defines, I think
#define HAVE_SNPRINTF 1
would be a bit better (adding 1 at the end)
I agree. Bob, could you make this minor change in CVS as well?
I just tried rebuilding again with a fresh checkout and commented out the SNPRINTF define in tif_config.vc.h (since Bob had already checked in the fix). It fails to build in exactly the same way.
The only reason I see you succeeding is that you already had some tif_config.h lying around and/or you're using a different Platform SDK somehow.
Is there is a possibility that a C++ style pre-compiled header feature is causing the problem?
I have noticed that Visual Studio does not necessarily evaluate preprocessor definitions in the order they appear. Sometimes it uses the same definition across the whole file, even if the definition is at the bottom of the file.
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/