Better fix

This commit is contained in:
Shinovon 2026-05-01 14:36:54 +05:00
parent 9adfa881b3
commit 558f1b9f32

View file

@ -113,12 +113,15 @@ struct LLLink
};
#ifndef RW_GL3
#ifdef __offsetof
#undef __offsetof
#endif
#define __offsetof(type, field) (reinterpret_cast <size_t> \
(&reinterpret_cast <const volatile char &> \
(static_cast<type *> (0)->field)))
#endif
#define LLLinkGetData(linkvar,type,entry) \
((type*)(((rw::uint8*)(linkvar))-offsetof(type,entry)))
((type*)(((rw::uint8*)(linkvar))-offsetof(type,entry)))
// Have to be careful since the link might be deleted.
#define FORLIST(_link, _list) \