* archive.c (offsetof): Remove define.

* elf.c: Likewise.
	* oasys.c: Likewise
	* sysdep.h (offsetof): Define.
This commit is contained in:
Alan Modra
2001-08-19 23:42:47 +00:00
parent fe766f112c
commit ba3ef70e78
5 changed files with 13 additions and 20 deletions

View File

@@ -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().