* targets.c (bfd_target_list): Don't return the default target twice.
[deliverable/binutils-gdb.git] / bfd / sysdep.h
index bab1c51a272b60a2e69b37473494cc58f2d9d484..1338d6b82658dc1d710779c4b2cf8009434f25b6 100644 (file)
@@ -125,6 +125,12 @@ extern void free ();
 extern char *getenv ();
 #endif
 
+/* Define offsetof for those systems which lack it */
+
+#ifndef offsetof
+#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
+#endif
+
 #ifdef ENABLE_NLS
 #include <libintl.h>
 /* Note the use of dgetext() and PACKAGE here, rather than gettext().
This page took 0.025548 seconds and 4 git commands to generate.