diff options
author | Bob Friesenhahn <bfriesen@simple.dallas.tx.us> | 2020-01-26 19:17:23 -0600 |
---|---|---|
committer | Bob Friesenhahn <bfriesen@simple.dallas.tx.us> | 2020-01-26 19:17:23 -0600 |
commit | 550f8708d25b913333052cb5c6d3d75f1afdff39 (patch) | |
tree | 2a322cde4e15fd34413bc331818169d27e140ec6 /libtiff/tif_config.vc.h | |
parent | 58b16f47a82323c05ec81f0a821700beb8c2c5a0 (diff) | |
download | libtiff-git-550f8708d25b913333052cb5c6d3d75f1afdff39.tar.gz |
Fix nmake build mistakes in my last commit:
tif_config.vc.h:
Always define HAVE_STRTOL/HAVE_STRTOUL.
Define HAVE_STRTOLL/HAVE_STRTOULL if _MSC_VER >= 1900.
nmake.opt:
Provide defaults suitable for MSVC prior to 14.0.
libport.h:
The sense of the pre-processor logic was inverted from what it
should be. The intention is to only provide the prototype if the
function is missing.
Diffstat (limited to 'libtiff/tif_config.vc.h')
-rw-r--r-- | libtiff/tif_config.vc.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libtiff/tif_config.vc.h b/libtiff/tif_config.vc.h index 78f3b204..939594f8 100644 --- a/libtiff/tif_config.vc.h +++ b/libtiff/tif_config.vc.h @@ -116,7 +116,9 @@ # else # define HAVE_SNPRINTF 1 # endif -# if _MSC_VER >= 1920 /* Visual Studio 2019 has strtoll/strtoull */ +# define HAVE_STRTOL 1 +# define HAVE_STRTOUL 1 +# if _MSC_VER >= 1900 /* Visual Studio 2015 added strtoll/strtoull */ # define HAVE_STRTOLL 1 # define HAVE_STRTOULL 1 # endif |