diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-04-23 10:56:20 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-04-23 10:56:20 -0700 |
commit | 30f0d2314d1086ebf4bad29b1d11c7916338b95d (patch) | |
tree | 275dbf40966f1376596534b3e132cd6eb4a7b8f3 /config.h.in | |
parent | 02fd22eb31a7385cfe483a2ee4980775a259b085 (diff) | |
download | tcpdump-30f0d2314d1086ebf4bad29b1d11c7916338b95d.tar.gz |
We still need u_intN_t.
Some libpcap headers use them, and even if we change libpcap to use
uintN_t, we don't require that tcpdump 4.x go with libpcap 1.x - we
allow people to install the latest tcpdump even if they have an older
libpcap and don't want to install a newer one.
However, we now define them in terms of the C99 uintN_t types, rather
than trying to guess what's appropriate; using unsigned long long for
u_int64_t meant that, on some platforms, u_int64_t didn't match
PRI[doux]64, and using unsigned long obviously won't work on ILP32
platforms.
Also, we already had calls to the autoconf macros for C99 types; get rid
of the ones we added.
Also also, clean up a comment in tcpdump-stdinc.h.
Diffstat (limited to 'config.h.in')
-rw-r--r-- | config.h.in | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/config.h.in b/config.h.in index c8c6507c..4cdb31b7 100644 --- a/config.h.in +++ b/config.h.in @@ -334,6 +334,18 @@ a type exists and the standard includes do not define it. */ #undef int8_t +/* Define to `uint16_t' if u_int16_t not defined. */ +#undef u_int16_t + +/* Define to `uint32_t' if u_int32_t not defined. */ +#undef u_int32_t + +/* Define to `uint64_t' if u_int64_t not defined. */ +#undef u_int64_t + +/* Define to `uint8_t' if u_int8_t not defined. */ +#undef u_int8_t + /* Define to the type of an unsigned integer type of width exactly 16 bits if such a type exists and the standard includes do not define it. */ #undef uint16_t |