aboutsummaryrefslogtreecommitdiff
path: root/gdb/xm-mips.h
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1992-10-21 07:15:39 +0000
committerStu Grossman <grossman@cygnus>1992-10-21 07:15:39 +0000
commitce5489d223efb14336a5b88cfb6e22f796ca2bf4 (patch)
tree417a8f44300f18cd464ac6838b912ef29fd376c3 /gdb/xm-mips.h
parent3fcb9021565be2a31fddd72721517050f392632c (diff)
downloadgdb-ce5489d223efb14336a5b88cfb6e22f796ca2bf4.zip
gdb-ce5489d223efb14336a5b88cfb6e22f796ca2bf4.tar.gz
gdb-ce5489d223efb14336a5b88cfb6e22f796ca2bf4.tar.bz2
* xm-mips.h (offsetof): Don't define this if __STDC__.
Diffstat (limited to 'gdb/xm-mips.h')
-rw-r--r--gdb/xm-mips.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/xm-mips.h b/gdb/xm-mips.h
index 030d472..2c2e5cd 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