summaryrefslogtreecommitdiff
path: root/lib/utils
diff options
context:
space:
mode:
authorBin Meng <[email protected]>2020-03-11 22:46:27 -0700
committerAnup Patel <[email protected]>2020-03-13 10:23:31 +0530
commit0cfe49ad63f1b31ffcc5345b53e32017cce5357a (patch)
treebdb0a1fa16032d06c2160a9977c04cf77b7e9b99 /lib/utils
parent4b2f594b855176c828540c3356b0a94beb86f161 (diff)
libfdt: Add INT32_MAX and UINT32_MAX in libfdt_env.h
Add two macros in preparation to sync libfdt codes to latest v1.5.1 release from upstream. Signed-off-by: Bin Meng <[email protected]> Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'lib/utils')
-rw-r--r--lib/utils/libfdt/libfdt_env.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/utils/libfdt/libfdt_env.h b/lib/utils/libfdt/libfdt_env.h
index 535b6371..415acff8 100644
--- a/lib/utils/libfdt/libfdt_env.h
+++ b/lib/utils/libfdt/libfdt_env.h
@@ -57,6 +57,8 @@
#define INT_MAX ((int)(~0U >> 1))
#define UINT_MAX ((unsigned int)~0U)
+#define INT32_MAX INT_MAX
+#define UINT32_MAX UINT_MAX
#ifdef __CHECKER__
#define FDT_FORCE __attribute__((force))