changeset 5947:49d640e2f2a7 draft

(svn r8613) -Fix [MorphOS]: offsetof() macro undefined for MorphOS build
author KUDr <KUDr@openttd.org>
date Tue, 06 Feb 2007 19:16:38 +0000
parents 1dc5b0b8fe69
children 157cf747c910
files src/stdafx.h
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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<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 */