mirror of
https://gitlab.com/shinovon/re3-symbian.git
synced 2026-05-23 01:57:21 +03:00
Fix compilation with older sdk
This commit is contained in:
parent
52e1b18729
commit
9adfa881b3
5 changed files with 16 additions and 8 deletions
7
vendor/librw/src/rwbase.h
vendored
7
vendor/librw/src/rwbase.h
vendored
|
|
@ -112,8 +112,13 @@ struct LLLink
|
|||
}
|
||||
};
|
||||
|
||||
#ifndef RW_GL3
|
||||
#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