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:
parent
10f407c660
commit
44bf8bbe29
@ -33,6 +33,7 @@ all_files := \
|
||||
errno.h \
|
||||
fcntl.h \
|
||||
getopt.h \
|
||||
inttypes.h \
|
||||
limits.h \
|
||||
math.h \
|
||||
nolibc.h \
|
||||
|
||||
3
tools/include/nolibc/inttypes.h
Normal file
3
tools/include/nolibc/inttypes.h
Normal file
@ -0,0 +1,3 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1 OR MIT */
|
||||
|
||||
#include "nolibc.h"
|
||||
Loading…
x
Reference in New Issue
Block a user