mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-06 15:26:58 +02:00
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>
15 lines
311 B
C
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
|