ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/AmigaOS/sysdeps.h
(Generate patch)

Comparing BasiliskII/src/AmigaOS/sysdeps.h (file contents):
Revision 1.1 by cebix, 1999-10-03T14:16:25Z vs.
Revision 1.6 by cebix, 1999-10-25T08:07:49Z

# Line 28 | Line 28
28   #include <stdlib.h>
29   #include <string.h>
30  
31 + #include "user_strings_amiga.h"
32 +
33   // Are the Mac and the host address space the same?
34   #define REAL_ADDRESSING 1
35  
# Line 37 | Line 39
39   // Is the Mac ROM write protected?
40   #define ROM_IS_WRITE_PROTECTED 0
41  
42 + // ExtFS is supported
43 + #define SUPPORTS_EXTFS 1
44 +
45 + // mon is not supported
46 + #define ENABLE_MON 0
47 +
48   // Data types
49   typedef unsigned char uint8;
50   typedef signed char int8;
# Line 44 | Line 52 | typedef unsigned short uint16;
52   typedef signed short int16;
53   typedef unsigned long uint32;
54   typedef signed long int32;
55 +
56 + #ifdef __GNUC__
57 + typedef unsigned long long loff_t;
58 + #endif
59 +
60 + #ifdef __SASC
61   typedef char bool;
62   #define true 1
63   #define false 0
64   typedef LONG loff_t;
65 + #endif
66  
67   // Time data type for Time Manager emulation
68   typedef struct timeval tm_time_t;
69  
70 + // Offset Mac->AmigaOS time in seconds
71 + #define TIME_OFFSET 0x8b31ef80
72 +
73   // Endianess conversion (not needed)
74   #define ntohs(x) (x)
75   #define ntohl(x) (x)
76   #define htons(x) (x)
77   #define htonl(x) (x)
78  
79 + // Some systems don't define this
80 + #ifndef AFF_68060
81 + #define AFF_68060 (1L<<7)
82 + #endif
83 +
84   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines