diff options
author | Bob Friesenhahn <bfriesen@simple.dallas.tx.us> | 2015-06-20 20:33:17 +0000 |
---|---|---|
committer | Bob Friesenhahn <bfriesen@simple.dallas.tx.us> | 2015-06-20 20:33:17 +0000 |
commit | 108fe0c6609cc5fce6822a141110083b13794b1d (patch) | |
tree | 2da421c78d7979b37f8a9362d8ce08003f89f2e3 /configure.ac | |
parent | b72cc590ae906271439e5489b62ff5ca454f05b8 (diff) | |
download | libtiff-git-108fe0c6609cc5fce6822a141110083b13794b1d.tar.gz |
* configure.ac: For 64-bit MinGW, fix SSIZE_FORMAT formatting
specifier. 64-bit MinGW supports 'long long' but support for
'lld' is not assured by the run-time DLLs.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 608d41e0..7dd42e3d 100644 --- a/configure.ac +++ b/configure.ac @@ -332,7 +332,15 @@ then elif test $ac_cv_sizeof_signed_long_long -eq $ac_cv_sizeof_unsigned_char_p then SSIZE_T='signed long long' - SSIZE_FORMAT='"%lld"' + case "${host_os}" in + mingw32*) + # MinGW32 understands 'long long', but uses printf from WIN32 CRT + SSIZE_FORMAT='"%I64d"' + ;; + *) + SSIZE_FORMAT='"%lld"' + ;; + esac fi AC_MSG_RESULT($SSIZE_T) AC_DEFINE_UNQUOTED(TIFF_SSIZE_T,$SSIZE_T,[Signed size type]) |