projects
/
deliverable
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1515ff1
)
Put back definition of offsetof. Only define it if it's not defined on this
author
Stu Grossman
<grossman@cygnus>
Tue, 17 Sep 1991 01:27:55 +0000
(
01:27
+0000)
committer
Stu Grossman
<grossman@cygnus>
Tue, 17 Sep 1991 01:27:55 +0000
(
01:27
+0000)
system.
bfd/oasys.c
patch
|
blob
|
blame
|
history
diff --git
a/bfd/oasys.c
b/bfd/oasys.c
index 2c0102eccf10ae76cf6bc576880a9648eb3d59a5..b7834fc28a3ed6e7e17e916f5bc2369ef5e91b86 100644
(file)
--- a/
bfd/oasys.c
+++ b/
bfd/oasys.c
@@
-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));
This page took
0.026469 seconds
and
4
git commands to generate.