Skip to content
Snippets Groups Projects
Commit 67b89c79 authored by Laurent Gregoire's avatar Laurent Gregoire Committed by Gerald Van Baren
Browse files

libfdt: Fix C++ compile-time cast error on gnu 4.2.1


Allow the inclusion of libfdt.h in C++ source.

Signed-off-by: default avatarLaurent Gregoire <laurent.gregoire@tomtom.com>
Acked-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
parent 13d93f38
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment