the platform's definition if available.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33958
138bc75d-0d04-0410-961f-
82ee72b054a4
+2000-05-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * system.h (offsetof): Define at the very end, to ensure we prefer
+ the platform's definition if available.
2000-05-16 Bruce Korb <bkorb@gnu.org>
#define NULL 0
#endif
-#ifndef offsetof
-#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
-#endif
-
/* The compiler is not a multi-threaded application and therefore we
do not have to use the locking functions.
#define ENUM_BITFIELD(TYPE) unsigned int
#endif
+#ifndef offsetof
+#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
+#endif
#endif /* __GCC_SYSTEM_H__ */