mirror of
https://gitlab.com/shinovon/re3-symbian.git
synced 2026-05-22 17:47:20 +03:00
Better fix
This commit is contained in:
parent
9adfa881b3
commit
558f1b9f32
1 changed files with 4 additions and 1 deletions
5
vendor/librw/src/rwbase.h
vendored
5
vendor/librw/src/rwbase.h
vendored
|
|
@ -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) \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue