]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Add an empty stdint.h file
authorSimon Glass <sjg@chromium.org>
Mon, 17 Dec 2018 16:15:44 +0000 (09:15 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 21 May 2019 23:33:23 +0000 (17:33 -0600)
Some libraries build by U-Boot may include stdint.h. This is not used by
U-Boot itself and causes conflicts with the types defined in
linux/types.h. To work around this, add an empty file with this name so
that it will be used in preference to the compiler version.

Signed-off-by: Simon Glass <sjg@chromium.org>
include/stdint.h [new file with mode: 0644]

diff --git a/include/stdint.h b/include/stdint.h
new file mode 100644 (file)
index 0000000..2e126d1
--- /dev/null
@@ -0,0 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Dummy file to allow libraries linked with U-Boot to include stdint.h without
+ * getting the system version.
+ *
+ * U-Boot uses linux types (linux/types.h) so does not make use of stdint.h
+ */