Allow the inclusion of libfdt.h in C++ source. --- Signed-off-by: Laurent Gregoire <[email protected]> --- diff -uprN a/libfdt/libfdt.h b/libfdt/libfdt.h --- a/libfdt/libfdt.h 2008-07-25 23:17:04.000000000 +0200 +++ b/libfdt/libfdt.h 2009-03-03 14:01:38.000000000 +0100 @@ -156,7 +156,7 @@ int fdt_next_node(const void *fdt, int o #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);
_______________________________________________ devicetree-discuss mailing list [email protected] https://ozlabs.org/mailman/listinfo/devicetree-discuss
