From ce5489d223efb14336a5b88cfb6e22f796ca2bf4 Mon Sep 17 00:00:00 2001 From: Stu Grossman Date: Wed, 21 Oct 1992 07:15:39 +0000 Subject: [PATCH] * xm-mips.h (offsetof): Don't define this if __STDC__. --- gdb/ChangeLog | 4 ++++ gdb/xm-mips.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index be1ea1ee418..75824b592f8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +Wed Oct 21 00:14:34 1992 Stu Grossman (grossman at cygnus.com) + + * xm-mips.h (offsetof): Don't define this if __STDC__. + Tue Oct 20 21:32:18 1992 K. Richard Pixley (rich@sendai.cygnus.com) umax native support (untested). diff --git a/gdb/xm-mips.h b/gdb/xm-mips.h index 030d472804b..2c2e5cd707e 100644 --- a/gdb/xm-mips.h +++ b/gdb/xm-mips.h @@ -43,7 +43,7 @@ extern void *memcpy(); extern void *memset(); #define MEM_FNS_DECLARED -#if !defined (offsetof) +#if ! defined (__STDC__) && ! defined (offsetof) # define offsetof(TYPE, MEMBER) ((unsigned long) &((TYPE *)0)->MEMBER) #endif -- 2.30.2