From d6617e1ec52a64b556b2ae6e6c732c748b05a23e Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Mon, 10 Dec 2012 23:17:41 +0100 Subject: [PATCH] include: Define WINE_RB_ENTRY_VALUE using the standard offsetof. --- include/wine/rbtree.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wine/rbtree.h b/include/wine/rbtree.h index de29d10c49e..2276e303463 100644 --- a/include/wine/rbtree.h +++ b/include/wine/rbtree.h @@ -23,7 +23,7 @@ #define __WINE_WINE_RBTREE_H #define WINE_RB_ENTRY_VALUE(element, type, field) \ - ((type *)((char *)(element) - FIELD_OFFSET(type, field))) + ((type *)((char *)(element) - offsetof(type, field))) struct wine_rb_entry {