]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
a2065: compilation fix
authorFrode Solheim <frode-code@fengestad.no>
Tue, 29 Jul 2014 19:52:07 +0000 (21:52 +0200)
committerFrode Solheim <frode-code@fengestad.no>
Tue, 29 Jul 2014 19:52:07 +0000 (21:52 +0200)
a2065.cpp
include/memory.h

index 156e74497fd95dfe4076f1ed18cfbf472b6ce7e1..d554e308b7a5a3321f8f3abd785e3eb0025d57cc 100644 (file)
--- a/a2065.cpp
+++ b/a2065.cpp
@@ -828,7 +828,14 @@ static void REGPARAM2 a2065_lput (uaecptr addr, uae_u32 l)
        a2065_wput (addr + 2, l);
 }
 
-extern addrbank a2065_bank;
+DECLARE_MEMORY_FUNCTIONS(a2065);
+
+static addrbank a2065_bank = {
+       a2065_lget, a2065_wget, a2065_bget,
+       a2065_lput, a2065_wput, a2065_bput,
+       default_xlate, default_check, NULL, _T("A2065 Z2 Ethernet"),
+       a2065_lgeti, a2065_wgeti, ABFLAG_IO
+};
 
 static void REGPARAM2 a2065_bput (uaecptr addr, uae_u32 b)
 {
@@ -877,13 +884,6 @@ static uae_u32 REGPARAM2 a2065_lgeti (uaecptr addr)
        return v;
 }
 
-static addrbank a2065_bank = {
-       a2065_lget, a2065_wget, a2065_bget,
-       a2065_lput, a2065_wput, a2065_bput,
-       default_xlate, default_check, NULL, _T("A2065 Z2 Ethernet"),
-       a2065_lgeti, a2065_wgeti, ABFLAG_IO
-};
-
 static addrbank *a2065_config (void)
 {
        memset (config, 0xff, sizeof config);
index efb1b4b026ff12823ddcb60b507ddae586115a5f..08d5fdc5799100fd4491dab288abd6e862a7abee 100644 (file)
@@ -89,7 +89,7 @@ typedef struct {
        ourselves. This holds the memory address where the start of memory is
        for this particular bank. */
        uae_u8 *baseaddr;
-       TCHAR *name;
+       const TCHAR *name;
        /* for instruction opcode/operand fetches */
        mem_get_func lgeti, wgeti;
        int flags;
@@ -262,7 +262,9 @@ static uae_u8 *REGPARAM2 name ## _xlate (uaecptr addr) \
 
 #define DECLARE_MEMORY_FUNCTIONS(name) \
  static uae_u32 REGPARAM3 name ## _lget (uaecptr) REGPARAM; \
+ static uae_u32 REGPARAM3 name ## _lgeti (uaecptr) REGPARAM; \
  static uae_u32 REGPARAM3 name ## _wget (uaecptr) REGPARAM; \
+ static uae_u32 REGPARAM3 name ## _wgeti (uaecptr) REGPARAM; \
  static uae_u32 REGPARAM3 name ## _bget (uaecptr) REGPARAM; \
  static void REGPARAM3 name ## _lput (uaecptr, uae_u32) REGPARAM; \
  static void REGPARAM3 name ## _wput (uaecptr, uae_u32) REGPARAM; \