diff options
author | guy <guy> | 2004-04-17 08:44:49 +0000 |
---|---|---|
committer | guy <guy> | 2004-04-17 08:44:49 +0000 |
commit | faf8160c18545f4c508a1be179b89c39c6645c7e (patch) | |
tree | 3d08df2187ad10594a187d553ea0b19e75914e95 /missing | |
parent | 1875b8ffe1dd76012ee876094ffc85382cc810ea (diff) | |
download | tcpdump-faf8160c18545f4c508a1be179b89c39c6645c7e.tar.gz |
Second stage of adding support for 64-bit integral data types - this
causes the configure script to attempt to define the PRI[doux]64 macros
if they're not defined by including <inttypes.h>, and causes
"missing/bittypes.h" to attempt to define them, if undefined, in a
fashion that should, with any luck, work on MSVC++ and various flavors
of GNU C on Windows.
Fix the spelling of "Mac OS X".
Diffstat (limited to 'missing')
-rw-r--r-- | missing/bittypes.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/missing/bittypes.h b/missing/bittypes.h index 2ee7dae4..e1ab9af7 100644 --- a/missing/bittypes.h +++ b/missing/bittypes.h @@ -83,3 +83,35 @@ typedef unsigned short u_int64_t; #endif #endif /* HAVE_U_INT64_T */ + +#ifndef PRId64 +#ifdef _MSC_EXTENSIONS +#define PRId64 "i64d" +#else /* _MSC_EXTENSIONS */ +#define PRId64 "lld" +#endif /* _MSC_EXTENSIONS */ +#endif /* PRId64 */ + +#ifndef PRIo64 +#ifdef _MSC_EXTENSIONS +#define PRIo64 "i64o" +#else /* _MSC_EXTENSIONS */ +#define PRIo64 "llo" +#endif /* _MSC_EXTENSIONS */ +#endif /* PRIo64 */ + +#ifndef PRIx64 +#ifdef _MSC_EXTENSIONS +#define PRIx64 "i64x" +#else /* _MSC_EXTENSIONS */ +#define PRIx64 "llx" +#endif /* _MSC_EXTENSIONS */ +#endif /* PRIx64 */ + +#ifndef PRIu64 +#ifdef _MSC_EXTENSIONS +#define PRIu64 "i64u" +#else /* _MSC_EXTENSIONS */ +#define PRIu64 "llu" +#endif /* _MSC_EXTENSIONS */ +#endif /* PRIu64 */ |