diff options
| author | Simon Glass <[email protected]> | 2022-02-28 12:08:32 -0700 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2022-04-06 14:03:17 -0400 |
| commit | 09bc3d2eacc31bd36ae092f8bc6795a8b9276192 (patch) | |
| tree | 6d9436446dd34560abadd0e38f0854c708ad35e4 /include/stdint.h | |
| parent | b7463f198da65257a3e0308f920ff8b3631c955b (diff) | |
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 <[email protected]>
Diffstat (limited to 'include/stdint.h')
| -rw-r--r-- | include/stdint.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/stdint.h b/include/stdint.h index 2e126d14bd9..dea83c8226a 100644 --- a/include/stdint.h +++ b/include/stdint.h @@ -5,3 +5,10 @@ * * U-Boot uses linux types (linux/types.h) so does not make use of stdint.h */ + +#ifndef __UB_STDINT_H +#define __UB_STDINT_H + +#define UINT8_MAX 0xff + +#endif |
