Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tools/nolibc: add the more portable inttypes.h

It's often recommended to only use inttypes.h instead of stdint.h for
portability reasons since the former is always present when the latter
is present, but not conversely, and the former includes the latter. Due
to this some simple programs fail to build when including inttypes.h.
Let's add one that simply includes nolibc.h to better support these
programs.

Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>

authored by

Willy Tarreau and committed by
Thomas Weißschuh
44bf8bbe 10f407c6

+4
+1
tools/include/nolibc/Makefile
··· 33 33 errno.h \ 34 34 fcntl.h \ 35 35 getopt.h \ 36 + inttypes.h \ 36 37 limits.h \ 37 38 math.h \ 38 39 nolibc.h \
+3
tools/include/nolibc/inttypes.h
··· 1 + /* SPDX-License-Identifier: LGPL-2.1 OR MIT */ 2 + 3 + #include "nolibc.h"