diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-17 15:21:11 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-17 15:21:11 +0000 |
commit | 19c2de7262b9f9bf111c444de034f6569a1db3e4 (patch) | |
tree | 0ad332b75e6e071311abd501cac9b144fcfd9ea2 /gcc/system.h | |
parent | 05fc9903d651262f945e300ccac7dc2de6871a7e (diff) | |
download | gcc-19c2de7262b9f9bf111c444de034f6569a1db3e4.tar.gz |
* system.h (offsetof): Define at the very end, to ensure we prefer
the platform's definition if available.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33958 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/system.h')
-rw-r--r-- | gcc/system.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/system.h b/gcc/system.h index 86ea5bafa06..1593689caeb 100644 --- a/gcc/system.h +++ b/gcc/system.h @@ -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__ */ |