summaryrefslogtreecommitdiff
path: root/libfdt_env.h
diff options
context:
space:
mode:
Diffstat (limited to 'libfdt_env.h')
-rw-r--r--libfdt_env.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/libfdt_env.h b/libfdt_env.h
index ee0419f7ce..90d7f3b162 100644
--- a/libfdt_env.h
+++ b/libfdt_env.h
@@ -19,13 +19,9 @@
#ifndef _LIBFDT_ENV_H
#define _LIBFDT_ENV_H
-#include <stddef.h>
-#include <stdint.h>
-#include <string.h>
-#include <endian.h>
-#include <byteswap.h>
+#include "bswap.h"
-#if __BYTE_ORDER == __BIG_ENDIAN
+#ifdef HOST_WORDS_BIGENDIAN
#define fdt32_to_cpu(x) (x)
#define cpu_to_fdt32(x) (x)
#define fdt64_to_cpu(x) (x)