1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-11 17:10:13 +00:00

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>
This commit is contained in:
Willy Tarreau 2025-11-02 14:21:28 +01:00 committed by Thomas Weißschuh
parent 10f407c660
commit 44bf8bbe29
2 changed files with 4 additions and 0 deletions

View File

@ -33,6 +33,7 @@ all_files := \
errno.h \
fcntl.h \
getopt.h \
inttypes.h \
limits.h \
math.h \
nolibc.h \

View File

@ -0,0 +1,3 @@
/* SPDX-License-Identifier: LGPL-2.1 OR MIT */
#include "nolibc.h"