[BZ#2830] Build problem contrib\iptcutil\iptcutil.c
Submitted by John Tytgat (john dot tytgat at esko dot com) on 2018-12-14 11:18
Link to original bug (#2830)
Description
When building libtiff on Windows (using Visual Studio supplied compiler) with CMake I encountered a build problem in contrib\iptcutil\iptcutil.c. There we have three preprocessor tests based on WIN32. This WIN32 preprocessor define is not defined. At least this should be changed in _WIN32 (which the Visual Studio compiler is defining automatically) or __WIN32__ which is defined in tiffio.h:
--8<--
#if !defined(__WIN32__) && (defined(_WIN32) || defined(WIN32))
#define __WIN32__
#endif
--8<--