summaryrefslogtreecommitdiff
path: root/include/libfdt_env.h
diff options
context:
space:
mode:
authorJerry Van Baren <gvb.uboot@gmail.com>2008-11-24 08:15:02 -0500
committerWolfgang Denk <wd@denx.de>2008-12-10 00:59:15 +0100
commit97a24a78ee6f34b89b821cb70eda1cf34aa11d97 (patch)
tree3ed5060c96a552623c7cf6268f27cf1bff0d98e3 /include/libfdt_env.h
parent1fc2b165c51d6f40c8d505f1b3eaefdb6599b17b (diff)
downloadu-boot-imx-97a24a78ee6f34b89b821cb70eda1cf34aa11d97.zip
u-boot-imx-97a24a78ee6f34b89b821cb70eda1cf34aa11d97.tar.gz
u-boot-imx-97a24a78ee6f34b89b821cb70eda1cf34aa11d97.tar.bz2
libfdt: Fix redefined uintptr_t warning for USE_HOSTCC
Compiling U-Boot in an old OS environment (RedHat-7.3 :-) gives the following warnings from FDT: include/libfdt_env.h:50: warning: redefinition of 'uintptr_t' /usr/include/stdint.h:129: warning: 'uintptr_t' previously declared here Fix: Protect the definition of uintptr_t when compiling on the host system. Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
Diffstat (limited to 'include/libfdt_env.h')
-rw-r--r--include/libfdt_env.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libfdt_env.h b/include/libfdt_env.h
index 355ebf2..ea474a5 100644
--- a/include/libfdt_env.h
+++ b/include/libfdt_env.h
@@ -47,6 +47,7 @@ extern struct fdt_header *working_fdt; /* Pointer to the working fdt */
#define cpu_to_fdt64(x) (x)
#endif
+#ifndef USE_HOSTCC
/*
* Types for `void *' pointers.
*
@@ -58,5 +59,6 @@ typedef unsigned long int uintptr_t;
#else
typedef unsigned int uintptr_t;
#endif
+#endif /* not USE_HOSTCC */
#endif /* _LIBFDT_ENV_H */