mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-14 20:14:02 +08:00
* hosts/std-host.h (offsetof): Define, if not already, for archive.c.
This commit is contained in:
parent
b5b4294e65
commit
f26a0e9bcf
@ -89,6 +89,11 @@ extern int unlink();
|
|||||||
#define BYTES_IN_PRINTF_INT 4
|
#define BYTES_IN_PRINTF_INT 4
|
||||||
#endif
|
#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"
|
#include "fopen-same.h"
|
||||||
#define hosts_std_host_H
|
#define hosts_std_host_H
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user