* mipsread.c: Undo ill effects from including <strings.h>,
authorFred Fish <fnf@specifix.com>
Wed, 17 Jun 1992 05:23:00 +0000 (05:23 +0000)
committerFred Fish <fnf@specifix.com>
Wed, 17 Jun 1992 05:23:00 +0000 (05:23 +0000)
which #defines index to be strchr.  Unfortunately, index is
a member of a symbol table structure that can't be changed.
* mipsread.c:  tm-mips.h includes coff/symconst.h and coff/sym.h,
remove redundant #include's.

gdb/ChangeLog
gdb/mipsread.c

index e4434a43f1279668dad28f7151c44dd653d5645a..27441390aea16cf534fde2c87c489c504f4414b9 100644 (file)
@@ -1,3 +1,11 @@
+Tue Jun 16 22:17:49 1992  Fred Fish  (fnf@cygnus.com)
+
+       * mipsread.c:  Undo ill effects from including <strings.h>,
+       which #defines index to be strchr.  Unfortunately, index is
+       a member of a symbol table structure that can't be changed.
+       * mipsread.c:  tm-mips.h includes coff/symconst.h and coff/sym.h,
+       remove redundant #include's.
+
 Tue Jun 16 14:15:51 1992  Stu Grossman  (grossman at cygnus.com)
 
        * mipsread.c:  #include <strings.h> for rindex().
index bd4bd68febff059eaf218a2fc75c72ae81d9da20..89fe0500e22244df96a70a59114cd5f253fca2cd 100644 (file)
@@ -69,9 +69,12 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #include <sys/stat.h>
 #include <strings.h>
 
+/* Undo brain-damage in some <strings.h> that '#define index strchr'.
+   Note that tm-mips.h includes coff/sym.h, which has a structure with a
+   member named 'index'. */
+#undef index
+
 #include "coff/mips.h"         /* COFF-like aspects of ecoff files */
-#include "coff/sym.h"          /* Symbol structures in ecoff files */
-#include "coff/symconst.h"     /* Manifest constants in ecoff sym structures */
 #include "coff/ecoff-ext.h"    /* External forms of ecoff sym structures */
 
 #include "libaout.h"           /* FIXME Secret internal BFD stuff for a.out */