From ba3ef70e78fc3fc766338ec9743c7fd595e922d8 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sun, 19 Aug 2001 23:42:47 +0000 Subject: * archive.c (offsetof): Remove define. * elf.c: Likewise. * oasys.c: Likewise * sysdep.h (offsetof): Define. --- bfd/elf.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'bfd/elf.c') diff --git a/bfd/elf.c b/bfd/elf.c index 56b7926..8ff3ec8 100644 --- a/bfd/elf.c +++ b/bfd/elf.c @@ -5343,12 +5343,6 @@ _bfd_elf_rel_vtable_reloc_fn (abfd, re, symbol, data, is, obfd, errmsg) # include #endif -/* Define offsetof for those systems which lack it. */ - -#ifndef offsetof -# define offsetof(TYPE, MEMBER) ((unsigned long) &((TYPE *)0)->MEMBER) -#endif - /* FIXME: this is kinda wrong, but it's what gdb wants. */ static int -- cgit v1.1