projects
/
oweals
/
uci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5dc6131
)
don't redefine container_of if it's already defined
author
Felix Fietkau
<nbd@openwrt.org>
Fri, 14 Nov 2008 21:20:18 +0000
(22:20 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Fri, 14 Nov 2008 21:20:18 +0000
(22:20 +0100)
uci.h
patch
|
blob
|
history
diff --git
a/uci.h
b/uci.h
index d48ea7cef153349256adca7017e28fd178b92f60..2ae02b78f2eee6c5cd9cad48ee157e287c7893f2 100644
(file)
--- a/
uci.h
+++ b/
uci.h
@@
-432,8
+432,10
@@
struct uci_ptr
* @type: the type of the container struct this is embedded in.
* @member: the name of the member within the struct.
*/
+#ifndef container_of
#define container_of(ptr, type, member) \
((type *) ((char *)ptr - offsetof(type,member)))
+#endif
/**