From 41d28a80abe4d1b5f17f180d6e483d36c6761d9e Mon Sep 17 00:00:00 2001 From: Rocco Rutte Date: Thu, 22 May 2008 17:01:56 +0200 Subject: Use C99 macros "PRId64"/"PRId32" to format file sizes/offsets if available. This fixes warning about mismatching int argument sizes on amd64. --- m4/types.m4 | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'm4') diff --git a/m4/types.m4 b/m4/types.m4 index 5f219fbf..e9aa116d 100644 --- a/m4/types.m4 +++ b/m4/types.m4 @@ -10,11 +10,11 @@ AC_DEFUN([MUTT_C99_INTTYPES], [dnl AC_CHECK_HEADERS([inttypes.h]) AC_CHECK_TYPE([uint32_t], - [AC_DEFINE(HAVE_C99_INTTYPES, 1, [Define if you have the C99 integer types])], - [AC_CHECK_SIZEOF(short) - AC_CHECK_SIZEOF(int) - AC_CHECK_SIZEOF(long) - AC_CHECK_SIZEOF(long long)]) + [AC_DEFINE(HAVE_C99_INTTYPES, 1, [Define if you have the C99 integer types])]) +AC_CHECK_SIZEOF(short) +AC_CHECK_SIZEOF(int) +AC_CHECK_SIZEOF(long) +AC_CHECK_SIZEOF(long long)]) AH_VERBATIM([X_HAVE_C99_INTTYPES], [#ifndef HAVE_C99_INTTYPES # if SIZEOF_SHORT == 4 @@ -33,4 +33,3 @@ typedef unsigned long long uint64_t; # endif #endif ]) -]) -- cgit v1.2.3