diff --git a/BasiliskII/src/MacOSX/sysdeps.h b/BasiliskII/src/MacOSX/sysdeps.h index 906761c4..9448c246 100644 --- a/BasiliskII/src/MacOSX/sysdeps.h +++ b/BasiliskII/src/MacOSX/sysdeps.h @@ -66,13 +66,33 @@ #endif +/* Symbol to distinguish Nigel's Aqua port from a normal Darwin X11 build */ +/* (this sysdeps.h file is currently specific to the Mac OS X Aqua port) */ +#define AQUA 1 + +/* Header which defines OS X version for selecting APIs */ #ifdef AVAILABILITYMACROS # include #endif -/* Emulator and host address space are distinct */ + +#ifdef ENABLE_NATIVE_M68K + +/* Mac and host address space are the same */ +#define REAL_ADDRESSING 1 + +/* Using 68k natively */ +#define EMULATED_68K 0 + +/* Mac ROM is not write protected */ +#define ROM_IS_WRITE_PROTECTED 0 +#define USE_SCRATCHMEM_SUBTERFUGE 1 + +#else + +/* Mac and host address space are distinct */ #ifndef REAL_ADDRESSING -# define REAL_ADDRESSING 0 +#define REAL_ADDRESSING 0 #endif /* Using 68k emulator */ @@ -89,6 +109,8 @@ # define ROM_IS_WRITE_PROTECTED 1 #endif +#endif + /* Direct Addressing requires Video on SEGV signals */ #if DIRECT_ADDRESSING && !ENABLE_VOSF # undef ENABLE_VOSF @@ -101,6 +123,7 @@ /* BSD socket API supported */ #define SUPPORTS_UDP_TUNNEL 1 + /* Data types */ typedef unsigned char uint8; typedef signed char int8;