projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5b4294
)
* hosts/std-host.h (offsetof): Define, if not already, for archive.c.
author
John Gilmore
<gnu@cygnus>
Tue, 14 Sep 1993 04:15:23 +0000
(
04:15
+0000)
committer
John Gilmore
<gnu@cygnus>
Tue, 14 Sep 1993 04:15:23 +0000
(
04:15
+0000)
bfd/hosts/std-host.h
patch
|
blob
|
history
diff --git
a/bfd/hosts/std-host.h
b/bfd/hosts/std-host.h
index aeac523b62ace22f92330b23bf86f5cbbac85625..6e97d8a0dc497f7cf25399c6579b167db73b45b3 100644
(file)
--- a/
bfd/hosts/std-host.h
+++ b/
bfd/hosts/std-host.h
@@
-89,6
+89,11
@@
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