include: fix a compiler warning on GNU/FreeBSD

Austin English austinenglish at gmail.com
Sun Oct 11 02:21:52 CDT 2009


These conflict on Debian/kFreeBSD. After this, and bug 20314, Wine
should be good to go on this platform.

-- 
-Austin
-------------- next part --------------
diff --git a/include/wine/list.h b/include/wine/list.h
index b610e5e..cc9254a 100644
--- a/include/wine/list.h
+++ b/include/wine/list.h
@@ -221,9 +221,15 @@ static inline void list_move_head( struct list *dst, struct list *src )
          (cursor2) = LIST_ENTRY((cursor)->field.prev, type, field))
 
 /* macros for statically initialized lists */
+#ifdef LIST_INIT
+#undef LIST_INIT
+#endif
 #define LIST_INIT(list)  { &(list), &(list) }
 
 /* get pointer to object containing list element */
+#ifdef LIST_ENTRY
+#undef LIST_ENTRY
+#endif
 #define LIST_ENTRY(elem, type, field) \
     ((type *)((char *)(elem) - (unsigned long)(&((type *)0)->field)))
 


More information about the wine-patches mailing list