Changeset 5404:d612ef757ee9
- Timestamp:
- 2008-05-22 08:01:56 (7 months ago)
- Author:
- Rocco Rutte <pdmef@…>
- Branch:
- HEAD
- Message:
-
Use C99 macros "PRId64"/"PRId32" to format file sizes/offsets if available.
This fixes warning about mismatching int argument sizes on amd64.
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r5402
|
r5404
|
|
| | 1 | 2008-05-22 16:34 +0200 Rocco Rutte <pdmef@gmx.net> (b97e95fd5786) |
| | 2 | |
| | 3 | * init.h: Document that $check_mbox_size should be set before |
| | 4 | mailboxes commands |
| | 5 | |
| | 6 | 2008-05-22 14:06 +0200 Rocco Rutte <pdmef@gmx.net> (a697362846e9) |
| | 7 | |
| | 8 | * ChangeLog, UPDATING: Mention requirement to encode X-Label: headers |
| | 9 | in UPDATING |
| | 10 | |
| 1 | 11 | 2008-05-21 23:20 -0700 Rocco Rutte <pdmef@gmx.net> (bba92e401440) |
| 2 | 12 | |
-
|
r5383
|
r5404
|
|
| 89 | 89 | #ifdef HAVE_FSEEKO |
| 90 | 90 | # define LOFF_T off_t |
| 91 | | # if SIZEOF_OFF_T == 8 |
| 92 | | # define OFF_T_FMT "%lld" |
| | 91 | # if HAVE_C99_INTTYPES && HAVE_INTTYPES_H |
| | 92 | # if SIZEOF_OFF_T == 8 |
| | 93 | # define OFF_T_FMT "%" PRId64 |
| | 94 | # else |
| | 95 | # define OFF_T_FMT "%" PRId32 |
| | 96 | # endif |
| 93 | 97 | # else |
| 94 | | # define OFF_T_FMT "%ld" |
| | 98 | # if (SIZEOF_OFF_T == 8) && (SIZEOF_LONG == 4) |
| | 99 | # define OFF_T_FMT "%lld" |
| | 100 | # else |
| | 101 | # define OFF_T_FMT "%ld" |
| | 102 | # endif |
| 95 | 103 | # endif |
| 96 | 104 | #else |
-
|
r3869
|
r5404
|
|
| 11 | 11 | AC_CHECK_HEADERS([inttypes.h]) |
| 12 | 12 | AC_CHECK_TYPE([uint32_t], |
| 13 | | [AC_DEFINE(HAVE_C99_INTTYPES, 1, [Define if you have the C99 integer types])], |
| 14 | | [AC_CHECK_SIZEOF(short) |
| 15 | | AC_CHECK_SIZEOF(int) |
| 16 | | AC_CHECK_SIZEOF(long) |
| 17 | | AC_CHECK_SIZEOF(long long)]) |
| | 13 | [AC_DEFINE(HAVE_C99_INTTYPES, 1, [Define if you have the C99 integer types])]) |
| | 14 | AC_CHECK_SIZEOF(short) |
| | 15 | AC_CHECK_SIZEOF(int) |
| | 16 | AC_CHECK_SIZEOF(long) |
| | 17 | AC_CHECK_SIZEOF(long long)]) |
| 18 | 18 | AH_VERBATIM([X_HAVE_C99_INTTYPES], |
| 19 | 19 | [#ifndef HAVE_C99_INTTYPES |
| … |
… |
|
| 34 | 34 | #endif |
| 35 | 35 | ]) |
| 36 | | ]) |