system.h (offsetof): Define at the very end, to ensure we prefer the platform's defin...
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Wed, 17 May 2000 15:21:11 +0000 (15:21 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Wed, 17 May 2000 15:21:11 +0000 (15:21 +0000)
* system.h (offsetof): Define at the very end, to ensure we prefer
the platform's definition if available.

From-SVN: r33958

gcc/ChangeLog
gcc/system.h

index cc2734fc103327658c5d5dc78b3e9a9a6c7b5dd7..3f9fd2d0a6e263303b0cb9540b4d9f3917095e3d 100644 (file)
@@ -1,3 +1,7 @@
+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>
 
index 86ea5bafa06e64e50364a3654dff33d30f00b3c0..1593689caeb7fb7c0802b96b2d29ef79dc3dd042 100644 (file)
@@ -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__ */