summaryrefslogtreecommitdiff
path: root/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'common.h')
-rw-r--r--common.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/common.h b/common.h
index 5e4be0d..24f99bd 100644
--- a/common.h
+++ b/common.h
@@ -104,7 +104,15 @@
#include <time.h>
#include <stdio.h>
#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 <stdlib.h>
#include <string.h>
#include <stdarg.h>
+#ifndef __LIBRETRO__
#include "SDL.h"
+#endif
#include "cpu.h"
#include "memory.h"
#include "video.h"