* 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.
This commit is contained in:
parent
b72cc590ae
commit
108fe0c660
@ -1,5 +1,9 @@
|
|||||||
2015-06-20 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
|
2015-06-20 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
* test/raw_decode.c (XMD_H): Avoid conflicting typedefs for INT32
|
* test/raw_decode.c (XMD_H): Avoid conflicting typedefs for INT32
|
||||||
and boolean in MinGW build due to including jpeglib.h.
|
and boolean in MinGW build due to including jpeglib.h.
|
||||||
|
|
||||||
|
8
configure
vendored
8
configure
vendored
@ -17692,7 +17692,15 @@ then
|
|||||||
elif test $ac_cv_sizeof_signed_long_long -eq $ac_cv_sizeof_unsigned_char_p
|
elif test $ac_cv_sizeof_signed_long_long -eq $ac_cv_sizeof_unsigned_char_p
|
||||||
then
|
then
|
||||||
SSIZE_T='signed long long'
|
SSIZE_T='signed long long'
|
||||||
|
case "${host_os}" in
|
||||||
|
mingw32*)
|
||||||
|
# MinGW32 understands 'long long', but uses printf from WIN32 CRT
|
||||||
|
SSIZE_FORMAT='"%I64d"'
|
||||||
|
;;
|
||||||
|
*)
|
||||||
SSIZE_FORMAT='"%lld"'
|
SSIZE_FORMAT='"%lld"'
|
||||||
|
;;
|
||||||
|
esac
|
||||||
fi
|
fi
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSIZE_T" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSIZE_T" >&5
|
||||||
$as_echo "$SSIZE_T" >&6; }
|
$as_echo "$SSIZE_T" >&6; }
|
||||||
|
@ -332,7 +332,15 @@ then
|
|||||||
elif test $ac_cv_sizeof_signed_long_long -eq $ac_cv_sizeof_unsigned_char_p
|
elif test $ac_cv_sizeof_signed_long_long -eq $ac_cv_sizeof_unsigned_char_p
|
||||||
then
|
then
|
||||||
SSIZE_T='signed long long'
|
SSIZE_T='signed long long'
|
||||||
|
case "${host_os}" in
|
||||||
|
mingw32*)
|
||||||
|
# MinGW32 understands 'long long', but uses printf from WIN32 CRT
|
||||||
|
SSIZE_FORMAT='"%I64d"'
|
||||||
|
;;
|
||||||
|
*)
|
||||||
SSIZE_FORMAT='"%lld"'
|
SSIZE_FORMAT='"%lld"'
|
||||||
|
;;
|
||||||
|
esac
|
||||||
fi
|
fi
|
||||||
AC_MSG_RESULT($SSIZE_T)
|
AC_MSG_RESULT($SSIZE_T)
|
||||||
AC_DEFINE_UNQUOTED(TIFF_SSIZE_T,$SSIZE_T,[Signed size type])
|
AC_DEFINE_UNQUOTED(TIFF_SSIZE_T,$SSIZE_T,[Signed size type])
|
||||||
|
Loading…
Reference in New Issue
Block a user