# HG changeset patch # User KUDr # Date 1170789398 0 # Node ID 49d640e2f2a744b4efaa98f9ed06d62e603963a4 # Parent 1dc5b0b8fe695b01c4efbf4b43ee4c113cff044a (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 @@ # 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 */