From 8f9b841f721bbfbc74590267e57e0bb4744ae63f Mon Sep 17 00:00:00 2001 From: aliaspider Date: Tue, 9 Dec 2014 00:17:28 +0100 Subject: can compile --- common.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'common.h') diff --git a/common.h b/common.h index 5e4be0d..24f99bd 100644 --- a/common.h +++ b/common.h @@ -103,8 +103,16 @@ #include #include +#else +#ifdef __LIBRETRO__ + +#define GBA_SCREEN_WIDTH (240) +#define GBA_SCREEN_HEIGHT (160) +#define GBA_SCREEN_PITCH (240) + #else #include "SDL.h" +#endif #ifdef ARM_ARCH #define function_cc @@ -210,7 +218,9 @@ typedef u32 fixed8_24; #include #include #include +#ifndef __LIBRETRO__ #include "SDL.h" +#endif #include "cpu.h" #include "memory.h" #include "video.h" -- cgit v1.2.3 From 50df6df600745247af98d0f6ed52f80043c9922b Mon Sep 17 00:00:00 2001 From: aliaspider Date: Tue, 9 Dec 2014 01:59:02 +0100 Subject: fix undefined referances. --- common.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'common.h') diff --git a/common.h b/common.h index 24f99bd..dfcef6a 100644 --- a/common.h +++ b/common.h @@ -110,6 +110,8 @@ #define GBA_SCREEN_HEIGHT (160) #define GBA_SCREEN_PITCH (240) +void switch_to_main_thread(void); + #else #include "SDL.h" #endif -- cgit v1.2.3