--- BasiliskII/src/AmigaOS/sysdeps.h 1999/10/03 14:16:25 1.1 +++ BasiliskII/src/AmigaOS/sysdeps.h 1999/10/21 22:39:59 1.5 @@ -28,6 +28,8 @@ #include #include +#include "user_strings_amiga.h" + // Are the Mac and the host address space the same? #define REAL_ADDRESSING 1 @@ -37,6 +39,9 @@ // Is the Mac ROM write protected? #define ROM_IS_WRITE_PROTECTED 0 +// ExtFS is supported +#define SUPPORTS_EXTFS 1 + // Data types typedef unsigned char uint8; typedef signed char int8; @@ -44,18 +49,33 @@ typedef unsigned short uint16; typedef signed short int16; typedef unsigned long uint32; typedef signed long int32; + +#ifdef __GNUC__ +typedef unsigned long long loff_t; +#endif + +#ifdef __SASC typedef char bool; #define true 1 #define false 0 typedef LONG loff_t; +#endif // Time data type for Time Manager emulation typedef struct timeval tm_time_t; +// Offset Mac->AmigaOS time in seconds +#define TIME_OFFSET 0x8b31ef80 + // Endianess conversion (not needed) #define ntohs(x) (x) #define ntohl(x) (x) #define htons(x) (x) #define htonl(x) (x) +// Some systems don't define this +#ifndef AFF_68060 +#define AFF_68060 (1L<<7) +#endif + #endif