fix gp2x build and some obvious menu glitches
[picodrive.git] / platform / gp2x / gp2x.c
index e0aa296..e433524 100644 (file)
@@ -35,6 +35,7 @@
 #include "../linux/sndout_oss.h"\r
 #include "../common/arm_utils.h"\r
 #include "../common/arm_linux.h"\r
+#include "../common/emu.h"\r
 \r
 volatile unsigned short *gp2x_memregs;\r
 //static\r
@@ -196,7 +197,6 @@ void gp2x_pd_clone_buffer2(void)
 \r
 unsigned long gp2x_joystick_read(int unused)\r
 {\r
-       int i;\r
        unsigned long value=(gp2x_memregs[0x1198>>1] & 0x00FF); // GPIO M\r
        if(value==0xFD) value=0xFA;\r
        if(value==0xF7) value=0xEB;\r