]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
sana2.cpp: trivial changes
authorFrode Solheim <frode@fs-uae.net>
Fri, 4 Sep 2015 22:33:05 +0000 (00:33 +0200)
committerFrode Solheim <frode@fs-uae.net>
Fri, 4 Sep 2015 22:33:05 +0000 (00:33 +0200)
sana2.cpp

index 8a9d935c60a854a6700526d692b01135ac88902a..7d8302cffc72846e8ffc826bfa5aa95d7501580e 100644 (file)
--- a/sana2.cpp
+++ b/sana2.cpp
 #endif
 #include "execio.h"
 
+/* These variables are referenced by custom.cpp and newcpu.cpp */
+volatile int uaenet_int_requested = 0;
+volatile int uaenet_vsync_requested = 0;
+
+#ifdef SANA2
+
 static void uaenet_gotdata (void *dev, const uae_u8 *data, int len);
 static int uaenet_getdata (void *dev, uae_u8 *d, int *len);
 
@@ -146,8 +152,6 @@ struct s2packet {
        int len;
 };
 
-volatile int uaenet_int_requested;
-volatile int uaenet_vsync_requested;
 static int uaenet_int_late;
 
 static uaecptr timerdevname;
@@ -930,7 +934,7 @@ static int uaenet_getdata (void *devv, uae_u8 *d, int *len)
        return gotit;
 }
 
-void checkevents (struct s2devstruct *dev, int mask, int sem)
+static void checkevents (struct s2devstruct *dev, int mask, int sem)
 {
        struct asyncreq *ar;
 
@@ -1746,3 +1750,5 @@ void netdev_reset (void)
                return;
        dev_reset ();
 }
+
+#endif /* SANA2 */