diff options
Diffstat (limited to 'emulators/gngb/files/patch-src_serial.h')
-rw-r--r-- | emulators/gngb/files/patch-src_serial.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/emulators/gngb/files/patch-src_serial.h b/emulators/gngb/files/patch-src_serial.h new file mode 100644 index 000000000000..39f9f8224e5c --- /dev/null +++ b/emulators/gngb/files/patch-src_serial.h @@ -0,0 +1,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); |