]> git.dujemihanovic.xyz Git - u-boot.git/commit
Add inttypes.h
authorSimon Glass <sjg@chromium.org>
Sat, 24 Nov 2018 04:29:43 +0000 (21:29 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 5 Dec 2018 13:01:35 +0000 (06:01 -0700)
commitbcb514ac02e8b8b823b7db4faa00ddcb8e78876a
treed4932fa3562268dc3ec43d86cd5933579be089d6
parent277f4eb2e88ba64e0926b189f99d548069089160
Add inttypes.h

Even if U-Boot does not use this, some libraries do. Add back this header
file so that the build does not fall back to using the host version, which
may include stdint.h and break the build due to conflicts with uint64_t,
etc.

This partially reverts commit dee37fc99d94 ("Remove <inttypes.h> includes
and PRI* usages in printf() entirely")

The only change from the file that was in U-Boot until recently is that it
now comes twice as close to passing checkpatch. The remaining warnings
pertain to the typedefs, which checkpatch does not like.

Signed-off-by: Simon Glass <sjg@chromium.org>
include/inttypes.h [new file with mode: 0644]