projects
/
project
/
uci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
don't redefine container_of if it's already defined
[project/uci.git]
/
uci.h
diff --git
a/uci.h
b/uci.h
index
d48ea7c
..
2ae02b7
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
/**