Logo
Explore Help
Register Sign In
leandrof/u-boot
1
0
Fork 1
You've already forked u-boot
Code Issues Pull Requests Packages Projects Releases Wiki Activity
Files
d6c5bdb8794f5ee1b4f332f717ceed32a4510366
u-boot/include/stdint.h

15 lines
314 B
C
Raw Normal View History

Add an empty stdint.h file 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>
2018-12-17 09:15:44 -07:00
/* 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
*/
stdint: Add a definition of UINT8_MAX This is normally defined in stdint.h but is not used in U-Boot. When libraries (such as Chromium OS vboot) are built against U-Boot they may expect this value to be available. Add it to avoid build errors in this case. Signed-off-by: Simon Glass <sjg@chromium.org>
2022-02-28 12:08:32 -07:00
#ifndef __UB_STDINT_H
#define __UB_STDINT_H
#define UINT8_MAX 0xff
#endif
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.1 Page: 195ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API