From mboxrd@z Thu Jan 1 00:00:00 1970 From: sjg at google.com Date: Wed, 5 Dec 2018 15:10:42 -0800 Subject: [U-Boot] [PATCH 20/21] Add inttypes.h In-Reply-To: <20181124042944.239106-21-sjg@chromium.org> References: <20181124042944.239106-21-sjg@chromium.org> <20181124042944.239106-1-sjg@chromium.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 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 --- include/inttypes.h | 271 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 271 insertions(+) create mode 100644 include/inttypes.h Applied to u-boot-dm/master, thanks!