mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
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>
This commit is contained in:
parent
1fc2b165c5
commit
97a24a78ee
1 changed files with 2 additions and 0 deletions
|
@ -47,6 +47,7 @@ extern struct fdt_header *working_fdt; /* Pointer to the working fdt */
|
||||||
#define cpu_to_fdt64(x) (x)
|
#define cpu_to_fdt64(x) (x)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef USE_HOSTCC
|
||||||
/*
|
/*
|
||||||
* Types for `void *' pointers.
|
* Types for `void *' pointers.
|
||||||
*
|
*
|
||||||
|
@ -58,5 +59,6 @@ typedef unsigned long int uintptr_t;
|
||||||
#else
|
#else
|
||||||
typedef unsigned int uintptr_t;
|
typedef unsigned int uintptr_t;
|
||||||
#endif
|
#endif
|
||||||
|
#endif /* not USE_HOSTCC */
|
||||||
|
|
||||||
#endif /* _LIBFDT_ENV_H */
|
#endif /* _LIBFDT_ENV_H */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue