workaround a problem with the harmattan gcc
[drnoksnes] / port.h
diff --git a/port.h b/port.h
index b24a6e2..5ffb924 100644 (file)
--- a/port.h
+++ b/port.h
@@ -73,14 +73,6 @@ typedef int16_t                      int16;
 typedef int32_t                        int32;
 typedef int64_t                        int64;
 
-//For Debugging Purposes:
-
-typedef uint8_t                        bool8_32;
-typedef uint8_t                        uint8_32;
-typedef uint16_t               uint16_32;
-typedef int8_t                 int8_32;
-typedef int16_t                        int16_32;
-
 //Defines for Extern C
 #ifdef __cplusplus
 #define EXTERN_C extern "C"
@@ -149,6 +141,13 @@ void PathSplit(const char *path, char *drive, char *dir, char *fname, char *ext)
 const char * PathBasename(const char * path);
 END_EXTERN_C
 
+// Input / output functions
+START_EXTERN_C
+uint32 S9xReadJoypad(int which1_0_to_4);
+bool8 S9xReadMousePosition(int which1_0_to_1, int *x, int *y, uint32 *buttons);
+bool8 S9xReadSuperScopePosition(int *x, int *y, uint32 *buttons);
+END_EXTERN_C
+
 // Stream functions, used when opening ROMs and snapshots.
 #ifdef ZLIB
 #include <zlib.h>