Add hacks to disable "floppy" & "serial[ab]" entries that would cause

Basilisk II to hang on MacOS X as an X11 build. I am not sure this is
supposed to work in an Aqua build so I leave that enable there, assuming
<AvailabilityMacros.h> is included somehow, thus defining MAC_OS_X_VERSION_*
and friends.
This commit is contained in:
gbeauche 2003-10-12 21:55:44 +00:00
parent 46dc8c5391
commit c04603adce

View File

@ -145,8 +145,13 @@ void SysAddFloppyPrefs(void)
PrefsAddString("floppy", "/dev/fd0a");
PrefsAddString("floppy", "/dev/fd1a");
#elif defined(__APPLE__) && defined(__MACH__)
// FIXME: We assume an Aqua build causes <AvailabilityMacros.h> to
// be included, thusly enabling this part of code that would cause
// Basilisk II to hang otherwise.
#ifdef MAC_OS_X_VERSION_10_0
PrefsAddString("floppy", "/dev/fd/0");
PrefsAddString("floppy", "/dev/fd/1");
#endif
#else
PrefsAddString("floppy", "/dev/fd0");
PrefsAddString("floppy", "/dev/fd1");
@ -217,7 +222,7 @@ void SysAddCDROMPrefs(void)
closedir(cd_dir);
}
}
#elif defined(__APPLE__) && defined(__MACH__)
#elif defined(__APPLE__) && defined(__MACH__) && defined(MAC_OS_X_VERSION_10_0)
extern void DarwinAddCDROMPrefs(void);
DarwinAddCDROMPrefs();
@ -248,8 +253,13 @@ void SysAddSerialPrefs(void)
PrefsAddString("seriala", "/dev/tty00");
PrefsAddString("serialb", "/dev/tty01");
#elif defined(__APPLE__) && defined(__MACH__)
// FIXME: We assume an Aqua build causes <AvailabilityMacros.h> to
// be included, thusly enabling this part of code that would cause
// Basilisk II to hang otherwise.
#ifdef MAC_OS_X_VERSION_10_0
PrefsAddString("seriala", "/dev/ttys0");
PrefsAddString("serialb", "/dev/ttys1");
#endif
// PrefsAddString("seriala", "/dev/cu.modem");
// PrefsAddString("serialb", "/dev/cu.IrDA-IrCOMMch-b");
#endif