mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-02 09:40:35 +00:00
(svn r8413) -Fix [MORPHOS]: disable #define offsetof conflict on Morphos (seems that g++ 2.95 defines it anyway)
This commit is contained in:
parent
561daaba2c
commit
1943e8cb8c
@ -310,7 +310,9 @@ assert_compile(sizeof(uint8) == 1);
|
||||
# define offsetof(s,m) (size_t)&(((s *)0)->m)
|
||||
#else /* __cplusplus */
|
||||
# define cpp_offsetof(s,m) (((size_t)&reinterpret_cast<const volatile char&>((((s*)(char*)8)->m))) - 8)
|
||||
# define offsetof(s,m) cpp_offsetof(s, m)
|
||||
# ifndef __MORPHOS__
|
||||
# define offsetof(s,m) cpp_offsetof(s, m)
|
||||
# endif /* !__MORPHOS__ */
|
||||
#endif /* __cplusplus */
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user