mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-29 10:30:46 +00:00
* archive.c (offsetof): Remove define.
* elf.c: Likewise. * oasys.c: Likewise * sysdep.h (offsetof): Define.
This commit is contained in:
@@ -125,6 +125,12 @@ extern void free ();
|
||||
extern char *getenv ();
|
||||
#endif
|
||||
|
||||
/* Define offsetof for those systems which lack it */
|
||||
|
||||
#ifndef offsetof
|
||||
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_NLS
|
||||
#include <libintl.h>
|
||||
/* Note the use of dgetext() and PACKAGE here, rather than gettext().
|
||||
|
||||
Reference in New Issue
Block a user