]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Allow for cross compilation.
authorMichael Meissner <meissner@gcc.gnu.org>
Thu, 29 Oct 1992 19:32:25 +0000 (19:32 +0000)
committerMichael Meissner <meissner@gcc.gnu.org>
Thu, 29 Oct 1992 19:32:25 +0000 (19:32 +0000)
From-SVN: r2649

gcc/mips-tdump.c
gcc/mips-tfile.c

index 5f30abaa06249da143b42f731c0464d32b1b8c98..a650a51283873f0054b313aee803ff5cf448d60d 100644 (file)
@@ -24,9 +24,18 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #include <sys/file.h>
 #include <fcntl.h>
 #include <errno.h>
-#include <a.out.h>
 #include "config.h"
 
+#ifndef CROSS_COMPILE
+#include <a.out.h>
+#else
+#include "symconst.h"
+#define LANGUAGE_C
+#include "sym.h"
+#include "filehdr.h"
+#define ST_RFDESCAPE    0xfff
+#endif
+
 #ifdef __STDC__
 typedef void *PTR_T;
 typedef const void *CPTR_T;
index 0aefb82dc1ee1482aa1105ca2b0dd6f3c6bf766e..47be18311c13a14af34f050079be7100eca4719d 100644 (file)
@@ -685,7 +685,6 @@ main ()
 #undef index
 
 #include <sys/types.h>
-#include <a.out.h>
 #include <string.h>
 #include <ctype.h>
 #include <fcntl.h>
@@ -693,6 +692,16 @@ main ()
 #include <signal.h>
 #include <sys/stat.h>
 
+#ifndef CROSS_COMPILE
+#include <a.out.h>
+#else
+#include "symconst.h"
+#define LANGUAGE_C
+#include "sym.h"
+#include "filehdr.h"
+#define ST_RFDESCAPE  0xfff
+#endif
+
 #if defined (USG) || defined (NO_STAB_H)
 #include "gstab.h"  /* If doing DBX on sysV, use our own stab.h.  */
 #else