diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-11-14 22:20:18 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-11-14 22:20:18 +0100 |
commit | 54d2ede9afc23bfae8d1421772fe8acb8fe62f7d (patch) | |
tree | 12ff8f0b8c92455ed17209ecf1456bbcbe23d9d2 /uci.h | |
parent | 5dc61312c1ffc80e730be0bca0bf780a44c55d51 (diff) | |
download | uci-54d2ede9afc23bfae8d1421772fe8acb8fe62f7d.tar.gz |
don't redefine container_of if it's already defined
Diffstat (limited to 'uci.h')
-rw-r--r-- | uci.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 /** |