diff options
author | Jeff Trawick <trawick@apache.org> | 2011-03-29 20:22:10 +0000 |
---|---|---|
committer | Jeff Trawick <trawick@apache.org> | 2011-03-29 20:22:10 +0000 |
commit | 28c3fa0ca796c65b6890e71d05c7423f8f43174c (patch) | |
tree | 4e4bbedf2e7ee084a6ceb08eac1e74e1d1acdeeb /configure.in | |
parent | c0b9cba960db36f1ba85527eb356a74a2b18bef3 (diff) | |
download | apr-28c3fa0ca796c65b6890e71d05c7423f8f43174c.tar.gz |
part of trunk r892122:
fix int64 and off_t settings on MinGW
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1086722 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 8aa8586c1..97f20acf6 100644 --- a/configure.in +++ b/configure.in @@ -1736,6 +1736,14 @@ case $host in esac size_t_fmt="lu" ;; + *-mingw*) + int64_t_fmt='#define APR_INT64_T_FMT "I64d"' + uint64_t_fmt='#define APR_UINT64_T_FMT "I64u"' + uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "I64x"' + int64_value="__int64" + long_value="__int64" + int64_strfn="_strtoi64" + ;; esac APR_CHECK_TYPES_COMPATIBLE(ssize_t, int, [ssize_t_fmt="d"]) @@ -1821,6 +1829,14 @@ elif test "$ac_cv_type_off_t" = "yes"; then else AC_ERROR([could not determine the size of off_t]) fi + # Per OS tuning... + case $host in + *-mingw*) + off_t_value=apr_int64_t + off_t_fmt='#define APR_OFF_T_FMT "I64d"' + off_t_strfn='_strtoi64' + ;; + esac else # Fallback on int off_t_value=apr_int32_t |