From f801a5c04f9ca174a31b9f2f2d39e3932902f788 Mon Sep 17 00:00:00 2001 From: KUDr Date: Tue, 6 Feb 2007 19:16:38 +0000 Subject: [PATCH] (svn r8613) -Fix [MorphOS]: offsetof() macro undefined for MorphOS build --- src/stdafx.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/stdafx.h b/src/stdafx.h index 84478ed083..d2d57d1d91 100644 --- 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 */