From: Frode Solheim Date: Fri, 4 Sep 2015 22:33:05 +0000 (+0200) Subject: sana2.cpp: trivial changes X-Git-Tag: 3200~89^2~4 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=bc19a786ed787ceede20ad6b6dba354d8025db92;p=francis%2Fwinuae.git sana2.cpp: trivial changes --- diff --git a/sana2.cpp b/sana2.cpp index 8a9d935c..7d8302cf 100644 --- a/sana2.cpp +++ b/sana2.cpp @@ -32,6 +32,12 @@ #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 */