list.h: undefine LIST_HEAD to prevent conflicts on mac os x

This commit is contained in:
Felix Fietkau 2012-10-04 16:11:04 +02:00
parent 5038992465
commit d6d6f11625

1
list.h
View file

@ -45,6 +45,7 @@ struct list_head {
}; };
#define LIST_HEAD_INIT(name) { &(name), &(name) } #define LIST_HEAD_INIT(name) { &(name), &(name) }
#undef LIST_HEAD
#define LIST_HEAD(name) struct list_head name = LIST_HEAD_INIT(name) #define LIST_HEAD(name) struct list_head name = LIST_HEAD_INIT(name)
static inline void static inline void