2009/4/20 James McKenzie jjmckenzie51@earthlink.net:
What compiler was complaining about the static inline problem? Your solution may cause problems with other compilers.
More specifically, you need to protect this with an #ifdef.
E.g.:
#ifdef __GNUC__ #define __WINE_ATTR_UNUSED __attribute__((unused)) #else #define __WINE_ATTR_UNUSED #endif ... static inline void __WINE_ATTR_UNUSED list_add_head( struct list *list, struct list *elem ) { ... }