X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=uci.h;h=2ae02b78f2eee6c5cd9cad48ee157e287c7893f2;hp=d48ea7cef153349256adca7017e28fd178b92f60;hb=c60702b55cf8efe9dcd359fc9aa8e9c7cd421ada;hpb=7d69106b37851e90bd8660c91d906492f6d7d148 diff --git a/uci.h b/uci.h index d48ea7c..2ae02b7 100644 --- 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 /**