Commit c0dbdfbb by Philippe De Muyter Committed by Philippe De Muyter

ggc-simple.c (offsetof): Macro definition moved from here ...

	* ggc-simple.c (offsetof): Macro definition moved from here ...
	* system.h (offsetof): ... to here.

From-SVN: r33879
parent 67384dfb
Fri May 12 19:03:58 2000 Philippe De Muyter <phdm@macqel.be>
* ggc-simple.c (offsetof): Macro fallback definition moved from here ..
* system.h (offsetof): ... to here.
2000-05-12 Richard Henderson <rth@cygnus.com> 2000-05-12 Richard Henderson <rth@cygnus.com>
* Makefile.in (final.o): Depend on BASIC_BLOCK_H. * Makefile.in (final.o): Depend on BASIC_BLOCK_H.
......
...@@ -28,10 +28,6 @@ ...@@ -28,10 +28,6 @@
#include "ggc.h" #include "ggc.h"
#include "timevar.h" #include "timevar.h"
#ifndef offsetof
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
#endif
/* Debugging flags. */ /* Debugging flags. */
/* Zap memory before freeing to catch dangling pointers. */ /* Zap memory before freeing to catch dangling pointers. */
......
...@@ -50,6 +50,10 @@ Boston, MA 02111-1307, USA. */ ...@@ -50,6 +50,10 @@ Boston, MA 02111-1307, USA. */
#define NULL 0 #define NULL 0
#endif #endif
#ifndef offsetof
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
#endif
/* The compiler is not a multi-threaded application and therefore we /* The compiler is not a multi-threaded application and therefore we
do not have to use the locking functions. do not have to use the locking functions.
......
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