Skip to content

Commit

Permalink
libc-hack: Make sure we have INT32_MAX
Browse files Browse the repository at this point in the history
  • Loading branch information
luka177 committed Aug 14, 2023
1 parent d19c87e commit 098be94
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libc-hack/libc-hack.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#ifndef LIBC_HACK_H
#define LIBC_HACK_H
#if defined (PLATFORM_UBOOT)
#include <linux/types.h>
#include <stdlib.h>
Expand All @@ -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

0 comments on commit 098be94

Please sign in to comment.