* archive.c: Define offsetof here.

* hosts/*.h: Don't define it here.
This commit is contained in:
Jim Kingdon 1993-09-27 23:27:46 +00:00
parent 8737c2f4e5
commit 69bdf1a5da
19 changed files with 5 additions and 94 deletions

View file

@ -1,3 +1,8 @@
Mon Sep 27 18:00:41 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
* archive.c: Define offsetof here.
* hosts/*.h: Don't define it here.
Mon Sep 27 19:09:27 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* elfcode.h (bfd_section_from_shdr): Set filepos for SHT_STRTAB

View file

@ -48,8 +48,3 @@ extern int fputc();
extern int unlink();
#include "fopen-same.h"
/* From ANSI C <stddef.h>, which we can't depend upon the existence of */
#ifndef offsetof
#define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
#endif

View file

@ -25,8 +25,3 @@ extern void free PARAMS ((PTR));
#endif
#include "fopen-same.h"
/* From ANSI C <stddef.h>, which we can't depend upon the existence of */
#ifndef offsetof
#define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
#endif

View file

@ -36,8 +36,3 @@ extern void free PARAMS ((PTR));
#endif
#include "fopen-same.h"
/* From ANSI C <stddef.h>, which we can't depend upon the existence of */
#ifndef offsetof
#define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
#endif

View file

@ -82,8 +82,3 @@ extern int unlink();
#include "fopen-same.h"
/* From ANSI C <stddef.h>, which we can't depend upon the existence of */
#ifndef offsetof
#define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
#endif

View file

@ -27,8 +27,3 @@ extern int strtol();
#include "fopen-same.h"
/* From ANSI C <stddef.h>, which we can't depend upon the existence of */
#ifndef offsetof
#define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
#endif

View file

@ -24,8 +24,3 @@ extern void bzero PARAMS ((char *, int));
extern int strtol();
#include "fopen-same.h"
/* From ANSI C <stddef.h>, which we can't depend upon the existence of */
#ifndef offsetof
#define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
#endif

View file

@ -46,8 +46,3 @@ extern int fputc();
extern int unlink();
#include "fopen-same.h"
/* From ANSI C <stddef.h>, which we can't depend upon the existence of */
#ifndef offsetof
#define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
#endif

View file

@ -35,8 +35,3 @@ extern void free PARAMS ((PTR));
#endif
#include "fopen-same.h"
/* From ANSI C <stddef.h>, which we can't depend upon the existence of */
#ifndef offsetof
#define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
#endif

View file

@ -48,8 +48,3 @@ extern int fputc();
extern int unlink();
#include "fopen-same.h"
/* From ANSI C <stddef.h>, which we can't depend upon the existence of */
#ifndef offsetof
#define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
#endif

View file

@ -23,8 +23,3 @@
#endif
#include "fopen-same.h"
/* From ANSI C <stddef.h>, which we can't depend upon the existence of */
#ifndef offsetof
#define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
#endif

View file

@ -25,8 +25,3 @@
#endif
#include "fopen-same.h"
/* From ANSI C <stddef.h>, which we can't depend upon the existence of */
#ifndef offsetof
#define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
#endif

View file

@ -48,8 +48,3 @@ extern int fputc();
extern int unlink();
#include "fopen-same.h"
/* From ANSI C <stddef.h>, which we can't depend upon the existence of */
#ifndef offsetof
#define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
#endif

View file

@ -18,8 +18,3 @@ extern char *malloc();
extern void free();
#include "fopen-same.h"
/* From ANSI C <stddef.h>, which we can't depend upon the existence of */
#ifndef offsetof
#define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
#endif

View file

@ -89,19 +89,10 @@ extern int unlink();
#define BYTES_IN_PRINTF_INT 4
#endif
/* From ANSI C <stddef.h>, which we can't depend upon the existence of */
#ifndef offsetof
#define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
#endif
#include "fopen-same.h"
#define hosts_std_host_H
#endif
#ifdef STDC_HEADERS
#include <stddef.h>
#else
#ifndef offsetof
#define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
#endif
#endif /* STDC_HEADERS */

View file

@ -48,8 +48,3 @@ extern int fputc();
extern int unlink();
#include "fopen-same.h"
/* From ANSI C <stddef.h>, which we can't depend upon the existence of */
#ifndef offsetof
#define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
#endif

View file

@ -54,8 +54,3 @@ extern int unlink();
#include "fopen-same.h"
/* From ANSI C <stddef.h>, which we can't depend upon the existence of */
#ifndef offsetof
#define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
#endif

View file

@ -18,8 +18,3 @@ extern char *malloc();
extern void free();
#include "fopen-same.h"
/* From ANSI C <stddef.h>, which we can't depend upon the existence of */
#ifndef offsetof
#define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
#endif

View file

@ -26,8 +26,3 @@ extern int strtol();
#define NO_STDARG 1
#include "fopen-same.h"
/* From ANSI C <stddef.h>, which we can't depend upon the existence of */
#ifndef offsetof
#define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
#endif