mirror of
https://github.com/reactos/reactos.git
synced 2025-01-06 06:20:13 +00:00
[HHPCOMP]
- Avoid casting pointers to 'unsigned long' svn path=/trunk/; revision=74624
This commit is contained in:
parent
945dd20eae
commit
88a76ad2f0
1 changed files with 5 additions and 0 deletions
|
@ -186,8 +186,13 @@ static inline void list_splice_init(struct list_head *list,
|
|||
* @type: the type of the struct this is embedded in.
|
||||
* @member: the name of the list_struct within the struct.
|
||||
*/
|
||||
#ifdef __REACTOS__
|
||||
#define list_entry(ptr, type, member) \
|
||||
((type *)((char *)(ptr)-(size_t)(&((type *)0)->member)))
|
||||
#else /* __REACTOS__ */
|
||||
#define list_entry(ptr, type, member) \
|
||||
((type *)((char *)(ptr)-(unsigned long)(&((type *)0)->member)))
|
||||
#endif /* __REACTOS__ */
|
||||
|
||||
/**
|
||||
* list_for_each - iterate over a list
|
||||
|
|
Loading…
Reference in a new issue