diff options
author | Rocco Rutte <pdmef@gmx.net> | 2008-05-22 17:01:56 +0200 |
---|---|---|
committer | Rocco Rutte <pdmef@gmx.net> | 2008-05-22 17:01:56 +0200 |
commit | 41d28a80abe4d1b5f17f180d6e483d36c6761d9e (patch) | |
tree | b91c7a3e497d13203075e47ec4ccdb418bacd4ac /m4/types.m4 | |
parent | a125680aa809e232cca00d71d7c67c87c96bb73e (diff) |
Use C99 macros "PRId64"/"PRId32" to format file sizes/offsets if available.
This fixes warning about mismatching int argument sizes on amd64.
Diffstat (limited to 'm4/types.m4')
-rw-r--r-- | m4/types.m4 | 11 |
1 files changed, 5 insertions, 6 deletions
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 ]) -]) |