diff options
author | Philippe De Muyter <phdm@macqel.be> | 2000-05-12 19:07:03 +0200 |
---|---|---|
committer | Philippe De Muyter <phdm@gcc.gnu.org> | 2000-05-12 17:07:03 +0000 |
commit | c0dbdfbbb30a9d60df636582724f0737cd906aa3 (patch) | |
tree | 1a717beae0227f632b4cb3b6671bb714610b3690 /gcc/system.h | |
parent | 67384dfba3f4dec04aea2ca1195786c1f1575320 (diff) | |
download | gcc-c0dbdfbbb30a9d60df636582724f0737cd906aa3.zip gcc-c0dbdfbbb30a9d60df636582724f0737cd906aa3.tar.gz gcc-c0dbdfbbb30a9d60df636582724f0737cd906aa3.tar.bz2 |
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
Diffstat (limited to 'gcc/system.h')
-rw-r--r-- | gcc/system.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/system.h b/gcc/system.h index 89d389c..86ea5ba 100644 --- a/gcc/system.h +++ b/gcc/system.h @@ -50,6 +50,10 @@ 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. |