]> git.sur5r.net Git - u-boot/blobdiff - include/linux/libfdt_env.h
libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h>
[u-boot] / include / linux / libfdt_env.h
index 8178f9174bf9f27ef25404f56b19d14cd076053d..0d209a64928664f4c30ff2f6fd26aa475fb82550 100644 (file)
@@ -1,3 +1,11 @@
+#ifdef USE_HOSTCC
+#include "../scripts/dtc/libfdt/libfdt_env.h"
+#else
+/*
+ * This position of the include guard is intentional.
+ * Using the same guard name as that of scripts/dtc/libfdt/libfdt_env.h
+ * prevents it from being included.
+ */
 #ifndef _LIBFDT_ENV_H
 #define _LIBFDT_ENV_H
 
@@ -20,3 +28,4 @@ typedef __be64 fdt64_t;
 #define strtoul(cp, endp, base)        simple_strtoul(cp, endp, base)
 
 #endif /* _LIBFDT_ENV_H */
+#endif