Put back definition of offsetof. Only define it if it's not defined on this

system.
This commit is contained in:
Stu Grossman 1991-09-17 01:27:55 +00:00
parent 1515ff18db
commit 5e4953bc10
1 changed files with 5 additions and 0 deletions

View File

@ -29,6 +29,11 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "oasys.h"
#include "liboasys.h"
/* Define offsetof for those systems which lack it */
#ifndef offsetof
#define offsetof(type, identifier) (size_t) &(((type *) 0)->identifier)
#endif
/* Read in all the section data and relocation stuff too */
PROTO(static boolean,oasys_slurp_section_data,(bfd *CONST abfd));