* archive.c: Define offsetof here.
* hosts/*.h: Don't define it here.
This commit is contained in:
parent
8737c2f4e5
commit
69bdf1a5da
19 changed files with 5 additions and 94 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue