summaryrefslogtreecommitdiff
path: root/gcc/mips-tdump.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/mips-tdump.c')
-rw-r--r--gcc/mips-tdump.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/gcc/mips-tdump.c b/gcc/mips-tdump.c
index a650a512838..37134aa3a5c 100644
--- a/gcc/mips-tdump.c
+++ b/gcc/mips-tdump.c
@@ -26,6 +26,10 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <errno.h>
#include "config.h"
+#ifdef index
+#undef index
+#undef rindex
+#endif
#ifndef CROSS_COMPILE
#include <a.out.h>
#else
@@ -60,11 +64,6 @@ typedef char *CPTR_T;
#define uint unsigned int
#define ulong unsigned long
-#ifdef index
-#undef index
-#undef rindex
-#endif
-
/* Do to size_t being defined in sys/types.h and different
in stddef.h, we have to do this by hand..... Note, these