]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: use inttypes.h instead of stdint.h
authorWilly Tarreau <w@1wt.eu>
Fri, 29 Mar 2019 16:26:33 +0000 (17:26 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 1 Apr 2019 05:44:56 +0000 (07:44 +0200)
commita1bd1faeebd03825677d111a1350ee04d625f165
tree756e08ac14b772856878ee226c844e1639afb4f8
parent7b5654f54a1dec8a29d3186f8ed8c7e718279183
BUILD: use inttypes.h instead of stdint.h

I found on an (old) AIX 5.1 machine that stdint.h didn't exist while
inttypes.h which is expected to include it does exist and provides the
desired functionalities.

As explained here, stdint being just a subset of inttypes for use in
freestanding environments, it's probably always OK to switch to inttypes
instead:

  https://pubs.opengroup.org/onlinepubs/009696799/basedefs/stdint.h.html

Also it's even clearer here in the autoconf doc :

  https://www.gnu.org/software/autoconf/manual/autoconf-2.61/html_node/Header-Portability.html

  "The C99 standard says that inttypes.h includes stdint.h, so there's
   no need to include stdint.h separately in a standard environment.
   Some implementations have inttypes.h but not stdint.h (e.g., Solaris
   7), but we don't know of any implementation that has stdint.h but not
   inttypes.h"
27 files changed:
contrib/hpack/decode.c
contrib/hpack/gen-enc.c
contrib/hpack/gen-rht.c
contrib/plug_qdisc/plug_qdisc.c
contrib/spoa_example/include/spop_functions.h
contrib/wireshark-dissectors/peers/packet-happp.c
include/common/buf.h
include/common/hash.h
include/common/hpack-dec.h
include/common/hpack-enc.h
include/common/hpack-huff.h
include/common/hpack-tbl.h
include/common/http-hdr.h
include/common/istbuf.h
include/common/memory.h
include/common/time.h
include/proto/channel.h
include/proto/protocol_buffers.h
include/proto/shctx.h
src/h2.c
src/hpack-dec.c
src/hpack-enc.c
src/hpack-huff.c
src/hpack-tbl.c
src/sha1.c
src/time.c
src/xxhash.c