fixed some portability issues
[picodrive.git] / cpu / fame / famec.c
index 5d19ff9..19657fc 100644 (file)
 \r
 // Options //\r
 #define FAMEC_ROLL_INLINE\r
-//#define FAMEC_EMULATE_TRACE\r
-//#define FAMEC_CHECK_BRANCHES\r
+#define FAMEC_EMULATE_TRACE\r
+#define FAMEC_CHECK_BRANCHES\r
 #define FAMEC_EXTRA_INLINE\r
 // #define FAMEC_DEBUG\r
-//#define FAMEC_NO_GOTOS\r
+#define FAMEC_NO_GOTOS\r
 #define FAMEC_ADR_BITS  24\r
 // #define FAMEC_FETCHBITS 8\r
 #define FAMEC_DATABITS  8\r
@@ -33,7 +33,9 @@
 \r
 \r
 #undef INLINE\r
-#ifndef INLINE\r
+#ifdef _MSC_VER\r
+#define INLINE\r
+#else\r
 #define INLINE __inline__\r
 #endif\r
 \r
@@ -914,9 +916,10 @@ famec_Exec:
 #endif\r
                if (cycles_needed != 0)\r
                {\r
+                       u32 line;\r
                        m68kcontext.io_cycle_counter = cycles_needed;\r
                        cycles_needed = 0;\r
-                       s32 line=interrupt_chk__();\r
+                       line=interrupt_chk__();\r
                        if (line>0)\r
                        {\r
                                if (m68kcontext.iack_handler != NULL)\r