summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2019-03-22 11:52:22 +0000
committerYann Ylavic <ylavic@apache.org>2019-03-22 11:52:22 +0000
commitdf292974b3de981d10d68dee1484742f694d3978 (patch)
tree9acd70286789fc75ed26dc6c7d51d59c18441437 /build
parent3830a3ca62c524bc27504f1f3873fd0a1207a2ad (diff)
downloadapr-df292974b3de981d10d68dee1484742f694d3978.tar.gz
Use stdint/inttypes 64bit types/formats when both available.
Which should be the case on modern platforms, no change for others. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1856042 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build')
-rw-r--r--build/apr_common.m46
1 files changed, 5 insertions, 1 deletions
diff --git a/build/apr_common.m4 b/build/apr_common.m4
index 9d4e686e7..208017116 100644
--- a/build/apr_common.m4
+++ b/build/apr_common.m4
@@ -985,7 +985,11 @@ AC_DEFUN([APR_CHECK_TYPES_FMT_COMPATIBLE], [
define([apr_cvname], apr_cv_typematch_[]translit([$1], [ ], [_])_[]translit([$2], [ ], [_])_[][$3])
AC_CACHE_CHECK([whether $1 and $2 use fmt %$3], apr_cvname, [
APR_TRY_COMPILE_NO_WARNING([#include <sys/types.h>
-#include <stdio.h>], [
+#include <stdio.h>
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#endif
+], [
$1 chk1, *ptr1;
$2 chk2, *ptr2 = &chk1;
ptr1 = &chk2;