Skip to content

Commit 098be94

Browse files
committed
libc-hack: Make sure we have INT32_MAX
1 parent d19c87e commit 098be94

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

libc-hack/libc-hack.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#ifndef LIBC_HACK_H
2+
#define LIBC_HACK_H
13
#if defined (PLATFORM_UBOOT)
24
#include <linux/types.h>
35
#include <stdlib.h>
@@ -6,3 +8,9 @@
68
typedef int status_t;
79
#elif defined (PLATFORM_UEFI)
810
#endif
11+
12+
// Common defenition (always safeguard with ifndef)
13+
#ifndef INT32_MAX
14+
#define INT32_MAX 0x7fffffff
15+
#endif
16+
#endif // LIBC_HACK_H

0 commit comments

Comments
 (0)