[INCLUDES/WINE] Attempt to please the linux builder.
authorAmine Khaldi <amine.khaldi@reactos.org>
Tue, 22 Nov 2016 17:42:41 +0000 (17:42 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Tue, 22 Nov 2016 17:42:41 +0000 (17:42 +0000)
svn path=/trunk/; revision=73349

reactos/sdk/include/reactos/wine/rbtree.h

index 441e039..a819549 100644 (file)
 #ifdef __GNUC__
 # define WINE_RB_ENTRY_VALUE(element, type, field) ({       \
      const typeof(((type *)0)->field) *__ptr = (element);   \
-     (type *)((char *)__ptr - offsetof(type, field)); })
+     (type *)((char *)__ptr - FIELD_OFFSET(type, field)); })
 #else
 # define WINE_RB_ENTRY_VALUE(element, type, field) \
-     ((type *)((char *)(element) - offsetof(type, field)))
+     ((type *)((char *)(element) - FIELD_OFFSET(type, field)))
 #endif
 
 struct wine_rb_entry