From 47d8b0eafd6d6bd038aca751ab8668192e558d01 Mon Sep 17 00:00:00 2001 From: Bob Friesenhahn Date: Sun, 21 Jun 2015 17:02:12 +0000 Subject: [PATCH] * libtiff/tiffconf.vc.h: Build fixes based on testing. * libtiff/tif_config.vc.h: Build fixes based on testing. --- ChangeLog | 4 ++++ libtiff/tif_config.vc.h | 9 ++++++++- libtiff/tiffconf.vc.h | 25 +++++++++++++------------ 3 files changed, 25 insertions(+), 13 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8c2c0762..67002933 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2015-06-21 Bob Friesenhahn + * libtiff/tiffconf.vc.h: Build fixes based on testing. + + * libtiff/tif_config.vc.h: Build fixes based on testing. + * libtiff/libtiff.def: TIFFRasterScanline does not exist so remove export for it. diff --git a/libtiff/tif_config.vc.h b/libtiff/tif_config.vc.h index cdccf3d4..7e6c5c27 100644 --- a/libtiff/tif_config.vc.h +++ b/libtiff/tif_config.vc.h @@ -1,3 +1,6 @@ +#ifndef _TIF_CONFIG_H_ +#define _TIF_CONFIG_H_ + /* Define to 1 if you have the header file. */ #define HAVE_ASSERT_H 1 @@ -27,7 +30,7 @@ #define HAVE_SETMODE 1 /* Define to 1 if you have the declaration of `optarg', and to 0 if you don't. */ -#define HAVE_DECL_OPTARG 1 +#define HAVE_DECL_OPTARG 0 /* The size of a `int', as computed by sizeof. */ #define SIZEOF_INT 4 @@ -119,6 +122,10 @@ #endif #define lfind _lfind + +#pragma warning(disable : 4996) /* function deprecation warnings */ + +#endif /* _TIF_CONFIG_H_ */ /* * Local Variables: * mode: c diff --git a/libtiff/tiffconf.vc.h b/libtiff/tiffconf.vc.h index 680f839f..c8c6c656 100644 --- a/libtiff/tiffconf.vc.h +++ b/libtiff/tiffconf.vc.h @@ -55,22 +55,23 @@ /* Unsigned 64-bit type */ #define TIFF_UINT64_T unsigned __int64 +#if _WIN64 +/* + Windows 64-bit build +*/ + /* Signed size type */ -#if defined(_WIN64) -#define TIFF_SSIZE_T signed __int64 -#else -#define TIFF_SSIZE_T signed int -#endif +# define TIFF_SSIZE_T TIFF_INT64_T -/* Signed size type formatter */ -#if defined(_WIN64) -#define TIFF_SSIZE_FORMAT "%I64d" #else -#define TIFF_SSIZE_FORMAT "%ld" -#endif +/* + Windows 32-bit build +*/ -/* Pointer difference type */ -#define TIFF_PTRDIFF_T long +/* Signed size type */ +# define TIFF_SSIZE_T signed int + +#endif /* Compatibility stuff. */