summaryrefslogtreecommitdiff
path: root/emulators/gngb/files/patch-src_serial.h
blob: 39f9f8224e5c36d70a0302811273a37b78b419a5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- src/serial.h.orig	2003-05-16 16:35:58 UTC
+++ src/serial.h
@@ -21,7 +21,7 @@
 
 #include "global.h"
 
-struct {
+typedef struct {
   Sint16 cycle_todo;
   Uint16 p;
   Uint8 b;
@@ -29,10 +29,12 @@ struct {
   Uint8 check;
   Uint8 wait;
   Uint8 ready2read;
-}gbserial;
+} gbserial_t;
 
-Sint16 serial_cycle_todo;
-Sint8 gblisten;
+extern gbserial_t gbserial;
+
+extern Sint16 serial_cycle_todo;
+extern Sint8 gblisten;
 
 void gbserial_init(int server_side,char *servername);
 void gbserial_close(void);