projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13d93f3
)
libfdt: Fix C++ compile-time cast error on gnu 4.2.1
author
Laurent Gregoire
<laurent.gregoire@tomtom.com>
Tue, 3 Mar 2009 13:23:59 +0000
(14:23 +0100)
committer
Gerald Van Baren
<vanbaren@cideas.com>
Wed, 1 Apr 2009 23:30:27 +0000
(19:30 -0400)
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>
include/libfdt.h
patch
|
blob
|
history
diff --git
a/include/libfdt.h
b/include/libfdt.h
index ce374fded10454b59bfb90cf1f4f2292afd58c17..d23d40e07b14cc93761ca3c8c2a2b19316e3d97c 100644
(file)
--- a/
include/libfdt.h
+++ b/
include/libfdt.h
@@
-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);