summaryrefslogtreecommitdiff
path: root/common.h
diff options
context:
space:
mode:
authorhizzlekizzle2019-10-22 15:19:04 -0500
committerGitHub2019-10-22 15:19:04 -0500
commita6d35e0165e270e7fc760b9a559a57ca9318ec11 (patch)
treecc0ddb321febbce3925d404b7340da7704dfe582 /common.h
parent24af89596e6484ff5a7a08efecfa8288cfbc02f3 (diff)
parenta60de42f3a7fba8e22d5b2a602a035c68ea4223c (diff)
downloadpicogpsp-a6d35e0165e270e7fc760b9a559a57ca9318ec11.tar.gz
picogpsp-a6d35e0165e270e7fc760b9a559a57ca9318ec11.tar.bz2
picogpsp-a6d35e0165e270e7fc760b9a559a57ca9318ec11.zip
Merge pull request #56 from bmaupin/enable-psp-dynarec
Reenable dynarec for PSP
Diffstat (limited to 'common.h')
-rw-r--r--common.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/common.h b/common.h
index 8b1df6b..5d52981 100644
--- a/common.h
+++ b/common.h
@@ -49,7 +49,7 @@
// Huge thanks to pollux for the heads up on using native file I/O
// functions on PSP for vastly improved memstick performance.
-#ifdef PSP_BUILD
+#ifdef PSP
#define fastcall
#include <pspkernel.h>
@@ -90,12 +90,6 @@
#include <stdio.h>
#else
-#define GBA_SCREEN_WIDTH (240)
-#define GBA_SCREEN_HEIGHT (160)
-#define GBA_SCREEN_PITCH (240)
-
-void switch_to_main_thread(void);
-
typedef unsigned char u8;
typedef signed char s8;
typedef unsigned short int u16;
@@ -133,6 +127,12 @@ void switch_to_main_thread(void);
#endif
+#define GBA_SCREEN_WIDTH (240)
+#define GBA_SCREEN_HEIGHT (160)
+#define GBA_SCREEN_PITCH (240)
+
+void switch_to_main_thread(void);
+
// These must be variables, not constants.
#define file_read_variable(filename_tag, variable) \