1 |
|
/* |
2 |
|
* sysdeps.h - System dependent definitions for AmigaOS |
3 |
|
* |
4 |
< |
* Basilisk II (C) 1997-1999 Christian Bauer |
4 |
> |
* Basilisk II (C) 1997-2008 Christian Bauer |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
27 |
|
#include <stdio.h> |
28 |
|
#include <stdlib.h> |
29 |
|
#include <string.h> |
30 |
+ |
#include <time.h> |
31 |
|
|
32 |
< |
// Are the Mac and the host address space the same? |
32 |
> |
#include "user_strings_amiga.h" |
33 |
> |
|
34 |
> |
// Mac and host address space are the same |
35 |
|
#define REAL_ADDRESSING 1 |
36 |
|
|
37 |
< |
// Are we using a 68k emulator or the real thing? |
37 |
> |
// Using 68k natively |
38 |
|
#define EMULATED_68K 0 |
39 |
|
|
40 |
< |
// Is the Mac ROM write protected? |
40 |
> |
// Mac ROM is not write protected |
41 |
|
#define ROM_IS_WRITE_PROTECTED 0 |
42 |
+ |
#define USE_SCRATCHMEM_SUBTERFUGE 1 |
43 |
+ |
|
44 |
+ |
// ExtFS is supported |
45 |
+ |
#define SUPPORTS_EXTFS 1 |
46 |
+ |
|
47 |
+ |
// mon is not supported |
48 |
+ |
#undef ENABLE_MON |
49 |
|
|
50 |
|
// Data types |
51 |
|
typedef unsigned char uint8; |
54 |
|
typedef signed short int16; |
55 |
|
typedef unsigned long uint32; |
56 |
|
typedef signed long int32; |
57 |
< |
typedef char bool; |
58 |
< |
#define true 1 |
59 |
< |
#define false 0 |
60 |
< |
typedef LONG loff_t; |
57 |
> |
typedef unsigned long long uint64; |
58 |
> |
typedef signed long long int64; |
59 |
> |
|
60 |
> |
typedef unsigned long long loff_t; |
61 |
|
|
62 |
|
// Time data type for Time Manager emulation |
63 |
|
typedef struct timeval tm_time_t; |
68 |
|
#define htons(x) (x) |
69 |
|
#define htonl(x) (x) |
70 |
|
|
71 |
+ |
// Some systems don't define this (ExecBase->AttnFlags) |
72 |
+ |
#ifndef AFF_68060 |
73 |
+ |
#define AFF_68060 (1L<<7) |
74 |
+ |
#endif |
75 |
+ |
|
76 |
|
#endif |