diff --git a/libc-hack/libc-hack.h b/libc-hack/libc-hack.h index 2641f61..4fbfcc0 100644 --- a/libc-hack/libc-hack.h +++ b/libc-hack/libc-hack.h @@ -1,3 +1,5 @@ +#ifndef LIBC_HACK_H +#define LIBC_HACK_H #if defined (PLATFORM_UBOOT) #include #include @@ -6,3 +8,9 @@ typedef int status_t; #elif defined (PLATFORM_UEFI) #endif + +// Common defenition (always safeguard with ifndef) +#ifndef INT32_MAX +#define INT32_MAX 0x7fffffff +#endif +#endif // LIBC_HACK_H