From db3c11dd75f5c1d7de709121881dca0ed7a0a094 Mon Sep 17 00:00:00 2001 From: nigel <> Date: Tue, 27 Jan 2004 04:37:23 +0000 Subject: [PATCH] Can only use floppy location code on OS X 10.2 or above? --- BasiliskII/src/MacOSX/sys_darwin.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/BasiliskII/src/MacOSX/sys_darwin.cpp b/BasiliskII/src/MacOSX/sys_darwin.cpp index 1be44570..58d46ac5 100644 --- a/BasiliskII/src/MacOSX/sys_darwin.cpp +++ b/BasiliskII/src/MacOSX/sys_darwin.cpp @@ -31,7 +31,9 @@ #import #import #import -#import +#ifdef MAC_OS_X_VERSION_10_2 + #import +#endif #import #import #import @@ -127,6 +129,7 @@ void DarwinAddCDROMPrefs(void) void DarwinAddFloppyPrefs(void) { +#ifdef MAC_OS_X_VERSION_10_2 mach_port_t masterPort; // The way to talk to the kernel io_iterator_t allFloppies; // List of CD drives on the system CFMutableDictionaryRef classesToMatch; @@ -189,6 +192,7 @@ void DarwinAddFloppyPrefs(void) IOObjectRelease(nextFloppy); IOObjectRelease(allFloppies); +#endif }