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 authored and Thomas Weißschuh committed 2025-11-02 14:28:20 +01:00
1 parent 10f407c660
commit 44bf8bbe29
2 files changed
+4

No files matched your search

+1
View File
@@ -33,6 +33,7 @@ all_files := \
errno.h \
fcntl.h \
getopt.h \
inttypes.h \
limits.h \
math.h \
nolibc.h \
+3
View File
@@ -0,0 +1,3 @@
/* SPDX-License-Identifier: LGPL-2.1 OR MIT */
#include "nolibc.h"