mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-13 16:27:39 -04:00
libfdt: Fix C++ compile-time cast error on gnu 4.2.1
Allow the inclusion of libfdt.h in C++ source. Signed-off-by: Laurent Gregoire <laurent.gregoire@tomtom.com> Acked-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
804fed8dcd
commit
f281f526d4
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ int fdt_next_node(const void *fdt, int offset, int *depth);
|
|||
#define __fdt_set_hdr(name) \
|
||||
static inline void fdt_set_##name(void *fdt, uint32_t val) \
|
||||
{ \
|
||||
struct fdt_header *fdth = fdt; \
|
||||
struct fdt_header *fdth = (struct fdt_header*)fdt; \
|
||||
fdth->name = cpu_to_fdt32(val); \
|
||||
}
|
||||
__fdt_set_hdr(magic);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue