Commit e0125cf3 by Kaveh R. Ghazi Committed by Kaveh Ghazi

system.h (offsetof): Define at the very end, to ensure we prefer the platform's…

system.h (offsetof): Define at the very end, to ensure we prefer the platform's definition if available.

	* system.h (offsetof): Define at the very end, to ensure we prefer
	the platform's definition if available.

From-SVN: r33958
parent 2dc693ee
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>
......
......@@ -50,10 +50,6 @@ Boston, MA 02111-1307, USA. */
#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.
......@@ -581,5 +577,8 @@ extern void abort PARAMS ((void));
#define ENUM_BITFIELD(TYPE) unsigned int
#endif
#ifndef offsetof
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
#endif
#endif /* __GCC_SYSTEM_H__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment