list.h: undefine LIST_HEAD to prevent conflicts on mac os x
[project/libubox.git] / list.h
diff --git a/list.h b/list.h
index 8425aff..47ce33b 100644 (file)
--- a/list.h
+++ b/list.h
@@ -45,6 +45,7 @@ struct list_head {
 };
 
 #define LIST_HEAD_INIT(name) { &(name), &(name) }
+#undef LIST_HEAD
 #define LIST_HEAD(name)        struct list_head name = LIST_HEAD_INIT(name)
 
 static inline void