summaryrefslogtreecommitdiff
path: root/src/stdafx.h
diff options
context:
space:
mode:
authorKUDr <KUDr@openttd.org>2007-02-06 19:16:38 +0000
committerKUDr <KUDr@openttd.org>2007-02-06 19:16:38 +0000
commit727409d2e8b8f41292f3c021a41c8bbaea30b0eb (patch)
treeeb66af64d6b33e82543ad414bef1d9bd83c64c54 /src/stdafx.h
parent310a299a4300bb4f4f8b3051feeb8700f1d82b7f (diff)
downloadopenttd-727409d2e8b8f41292f3c021a41c8bbaea30b0eb.tar.xz
(svn r8613) -Fix [MorphOS]: offsetof() macro undefined for MorphOS build
Diffstat (limited to 'src/stdafx.h')
-rw-r--r--src/stdafx.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/stdafx.h b/src/stdafx.h
index 84478ed08..d2d57d1d9 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<const volatile char&>((((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 */