X-Git-Url: https://git.lttng.org/?p=urcu.git;a=blobdiff_plain;f=urcu%2Frcuhlist.h;h=8549550e7fab3358fd031b30ed87ff67244f1472;hp=83b13632536cb15a3a398505da960f4e3417c086;hb=8cbc3cdca7f1320e3c2412654091fe94931ce62b;hpb=a00718e7e5df2c582de11fbd6be3d9420ad6c0e3 diff --git a/urcu/rcuhlist.h b/urcu/rcuhlist.h index 83b1363..8549550 100644 --- a/urcu/rcuhlist.h +++ b/urcu/rcuhlist.h @@ -57,9 +57,9 @@ static inline void cds_hlist_del_rcu(struct cds_hlist_node *elem) #define cds_hlist_for_each_entry_rcu(entry, pos, head, member) \ for (pos = rcu_dereference((head)->next), \ - entry = cds_hlist_entry(pos, typeof(*entry), member); \ + entry = cds_hlist_entry(pos, __typeof__(*entry), member); \ pos != NULL; \ pos = rcu_dereference(pos->next), \ - entry = cds_hlist_entry(pos, typeof(*entry), member)) + entry = cds_hlist_entry(pos, __typeof__(*entry), member)) #endif /* _URCU_RCUHLIST_H */