mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 14:40:56 +00:00
include: Define WINE_RB_ENTRY_VALUE using the standard offsetof.
This commit is contained in:
parent
649c982e60
commit
d6617e1ec5
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user