RobSmithDev / FloppyDriveBridge

Floppy Bridges - Real-time floppy disk access from within *UAE emulators
https://amiga.robsmithdev.co.uk
24 stars 4 forks source link

Compile fails with GCC13.1 #9

Closed dhwz closed 6 months ago

dhwz commented 1 year ago

Please check https://github.com/BlitterStudio/amiberry/issues/1100 I've opened that issue first on the amiberry repository as i didn't know about this repository. On the amiberry repository floppybridge 1.4 is already used, I can't compile the code with GCC13.1 as it fails on floppybridge code, see linked issue above for more details.

dhwz commented 1 year ago

Ok, I've played around a bit and this should fix the issue

diff --git a/src/floppybridge/CommonBridgeTemplate.h b/src/floppybridge/CommonBridgeTemplate.h
index e70bbede..8419d7d7 100644
--- a/src/floppybridge/CommonBridgeTemplate.h
+++ b/src/floppybridge/CommonBridgeTemplate.h
@@ -35,6 +35,7 @@
 #include <vector>
 #include <deque>
 #include <mutex>
+#include <string>
 #include <condition_variable>
 #include "floppybridge_abstract.h"
 #include "RotationExtractor.h"
diff --git a/src/floppybridge/SerialIO.h b/src/floppybridge/SerialIO.h
index abb43858..a73daf7e 100644
--- a/src/floppybridge/SerialIO.h
+++ b/src/floppybridge/SerialIO.h
@@ -26,6 +26,7 @@

 #include <string>
 #include <vector>
+#include <stdint.h>

 #ifdef _WIN32
 #ifdef USING_MFC