fix build on some ARM toolchains
authornotaz <notasas@gmail.com>
Fri, 23 Sep 2011 00:07:38 +0000 (03:07 +0300)
committernotaz <notasas@gmail.com>
Fri, 23 Sep 2011 00:08:55 +0000 (03:08 +0300)
R1 redefined..

frontend/main.c
libpcsxcore/psxcommon.h
libpcsxcore/psxcounters.c
libpcsxcore/psxinterpreter.c
libpcsxcore/psxmem.c

index 498e780..37a72ac 100644 (file)
 #include "common/input.h"
 #include "common/readpng.h"
 
+// don't include debug.h - it breaks ARM build (R1 redefined)
+void StartDebugger();
+void StopDebugger();
+
 int ready_to_go;
 unsigned long gpuDisp;
 char cfgfile_basename[MAXPATHLEN];
index 9f12e3b..cb808ec 100644 (file)
@@ -69,7 +69,6 @@ typedef uint8_t boolean;
 
 // Local includes
 #include "system.h"
-#include "debug.h"
 
 #if defined (__LINUX__) || defined (__MACOSX__)
 #define strnicmp strncasecmp
index 184a4c9..fc4c5b1 100644 (file)
@@ -22,6 +22,7 @@
  */
 
 #include "psxcounters.h"
+#include "debug.h"
 
 /******************************************************************************/
 
index 8eb4749..33616e5 100644 (file)
@@ -25,6 +25,7 @@
 #include "r3000a.h"
 #include "gte.h"
 #include "psxhle.h"
+#include "debug.h"
 
 static int branch = 0;
 static int branch2 = 0;
index b08d113..8c7c37b 100644 (file)
@@ -26,6 +26,7 @@
 #include "psxmem.h"
 #include "r3000a.h"
 #include "psxhw.h"
+#include "debug.h"
 #include <sys/mman.h>
 
 #ifndef MAP_ANONYMOUS