]> The Tcpdump Group git mirrors - libpcap/commit
Use C99 {u}intN_t types rather than BSD {u_}intN_t types.
authorGuy Harris <[email protected]>
Mon, 11 Sep 2017 18:56:04 +0000 (11:56 -0700)
committerGuy Harris <[email protected]>
Mon, 11 Sep 2017 18:56:04 +0000 (11:56 -0700)
commita8f73cd6ebcdbdc25f4658cb4ee378329979c49d
treeb1352a58343266c011f95057e2f6aff7fd296968
parentae295ecc4db4521d3da0ce0540fa557892e315b2
Use C99 {u}intN_t types rather than BSD {u_}intN_t types.

We can get them on any sufficiently modern UN*X, as they provide
<inttypes.h>.  We can get them with MSVC, by including <inttypes.h> on
newer versions or defining them ourselves in older versions.  We can get
them with various development environments on MS-DOS.

Add a pcap/pcap-inttypes.h header file that does what's necessary to get
them defined, and include that in the pcap/*.h headers that use those
types.

Have pcap-types.h only include what's necessary to get u_int defined.
19 files changed:
Makefile.in
config.h.in
configure
configure.ac
extract.h
gencode.c
pcap-common.c
pcap-netfilter-linux.c
pcap-types.h
pcap-usb-linux.c
pcap/bluetooth.h
pcap/can_socketcan.h
pcap/dlt.h
pcap/nflog.h
pcap/pcap-inttypes.h [new file with mode: 0644]
pcap/sll.h
pcap/usb.h
pcap/vlan.h
sf-pcap-ng.c