fixed some portability issues
authornotaz <notasas@gmail.com>
Sun, 27 Jan 2008 23:04:56 +0000 (23:04 +0000)
committernotaz <notasas@gmail.com>
Sun, 27 Jan 2008 23:04:56 +0000 (23:04 +0000)
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@337 be3aeb3a-fb24-0410-a615-afba39da0efa

cpu/cz80/cz80.c
cpu/fame/famec.c

index 461b46a..d7bdba3 100644 (file)
 #include "cz80.h"\r
 \r
 #if PICODRIVE_HACKS\r
+#undef EMU_M68K\r
 #include <Pico/PicoInt.h>\r
 #endif\r
 \r
 #ifndef ALIGN_DATA\r
+#ifdef _MSC_VER\r
+#define ALIGN_DATA\r
+#define inline\r
+#undef  CZ80_USE_JUMPTABLE\r
+#define CZ80_USE_JUMPTABLE 0\r
+#else\r
 #define ALIGN_DATA      __attribute__((aligned(4)))\r
 #endif\r
+#endif\r
 \r
 #define CF                                     0x01\r
 #define NF                                     0x02\r
index 0bb0f9b..19657fc 100644 (file)
@@ -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