u-boot/include/stdint.h
Rasmus Villemoes dd260d95fd limits.h: provide all limit macros for standard [u]intNN_t types
Currently, we only have UINT32_MAX and UINT64_MAX in limits.h, and
then stdint.h and kernel.h somewhat randomly define UINT8_MAX and
INT32_MAX, respectively.

Provide a full set of definitions in terms of the min/max macros for
the types that [u]intNN_t are defined in terms of, namely the {s,u}NN
ones.

Try to avoid breaking whatever depended on getting UINT8_MAX from our
compat stdint.h by replacing it with an include of limits.h.

Signed-off-by: Rasmus Villemoes <ravi@prevas.dk>
2025-07-14 12:43:28 -06:00

15 lines
311 B
C

/* 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
*/
#ifndef __UB_STDINT_H
#define __UB_STDINT_H
#include <limits.h>
#endif