]> git.baikalelectronics.ru Git - uboot.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)
commitb7115834de661e8c1e01ddce4eea8451fe75e19d
treed4932fa3562268dc3ec43d86cd5933579be089d6
parentd73c24677c0c4a21168b7f60d5133ea7974bd6e6
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 555b79b220b5 ("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]