mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-12-18 17:53:10 +00:00
efa4452a47
Turns out we had a bunch of silly dependencies on libc headers that are not included with freestanding compilers. Fix all this and change the CFLAGS to exclude libc headers and only include the built-in compiler path. Add our own versions of assert.h, errno.h, limits.h, and move malloc.h and string.h together into a new path used as -isystem, so these headers can be included using #include <>. Remove a bunch of other dependencies in third-party code. Add a strnlen function. Disable building the libfdt overlay code for now, as it needs a strtoul implementation. We can throw that in if/when we decide to use overlays. Signed-off-by: Hector Martin <marcan@marcan.st>
15 lines
281 B
C
15 lines
281 B
C
/* SPDX-License-Identifier: MIT */
|
|
|
|
#ifndef LIMITS_H
|
|
#define LIMITS_H
|
|
|
|
#define INT_MAX (0x7fffffff)
|
|
#define UINT_MAX (0xffffffffu)
|
|
|
|
#define LONG_MAX (0x7fffffffffffffffl)
|
|
#define ULONG_MAX (0xfffffffffffffffful)
|
|
|
|
#define LLONG_MAX LONG_MAX
|
|
#define ULLONG_MAX ULLONG_MAX
|
|
|
|
#endif
|