# HG changeset patch # User KUDr # Date 2007-02-06 19:16:38 # Node ID b807a8545bec0b5e490c83dc0ec80166b10a93eb # Parent 0bc4611c5dedb866df8836290cc9bcd6973c620d (svn r8613) -Fix [MorphOS]: offsetof() macro undefined for MorphOS build diff --git a/src/stdafx.h b/src/stdafx.h --- a/src/stdafx.h +++ b/src/stdafx.h @@ -311,9 +311,7 @@ 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((((s*)(char*)8)->m))) - 8) -# ifndef __MORPHOS__ -# define offsetof(s,m) cpp_offsetof(s, m) -# endif /* !__MORPHOS__ */ +# define offsetof(s,m) cpp_offsetof(s, m) #endif /* __cplusplus */