1 |
cebix |
1.1 |
/* |
2 |
|
|
* sysdeps.h - System dependent definitions for BeOS |
3 |
|
|
* |
4 |
|
|
* SheepShaver (C) 1997-2002 Christian Bauer and Marc Hellwig |
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 |
8 |
|
|
* the Free Software Foundation; either version 2 of the License, or |
9 |
|
|
* (at your option) any later version. |
10 |
|
|
* |
11 |
|
|
* This program is distributed in the hope that it will be useful, |
12 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 |
|
|
* GNU General Public License for more details. |
15 |
|
|
* |
16 |
|
|
* You should have received a copy of the GNU General Public License |
17 |
|
|
* along with this program; if not, write to the Free Software |
18 |
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 |
|
|
*/ |
20 |
|
|
|
21 |
|
|
#ifndef SYSDEPS_H |
22 |
|
|
#define SYSDEPS_H |
23 |
|
|
|
24 |
|
|
#include <assert.h> |
25 |
|
|
#include <sys/types.h> |
26 |
|
|
#include <KernelKit.h> |
27 |
|
|
|
28 |
|
|
#include "user_strings_beos.h" |
29 |
|
|
|
30 |
|
|
// Are we using a PPC emulator or the real thing? |
31 |
|
|
#ifdef __POWERPC__ |
32 |
|
|
#define EMULATED_PPC 0 |
33 |
|
|
#else |
34 |
|
|
#define EMULATED_PPC 1 |
35 |
|
|
#endif |
36 |
|
|
|
37 |
|
|
#define POWERPC_ROM 1 |
38 |
|
|
|
39 |
|
|
// Time data type for Time Manager emulation |
40 |
|
|
typedef bigtime_t tm_time_t; |
41 |
|
|
|
42 |
|
|
// 64 bit file offsets |
43 |
|
|
typedef off_t loff_t; |
44 |
|
|
|
45 |
|
|
// Macro for calling MacOS routines |
46 |
|
|
#define CallMacOS(type, proc) (*(type)proc)() |
47 |
|
|
#define CallMacOS1(type, proc, arg1) (*(type)proc)(arg1) |
48 |
|
|
#define CallMacOS2(type, proc, arg1, arg2) (*(type)proc)(arg1, arg2) |
49 |
|
|
#define CallMacOS3(type, proc, arg1, arg2, arg3) (*(type)proc)(arg1, arg2, arg3) |
50 |
|
|
#define CallMacOS4(type, proc, arg1, arg2, arg3, arg4) (*(type)proc)(arg1, arg2, arg3, arg4) |
51 |
|
|
#define CallMacOS5(type, proc, arg1, arg2, arg3, arg4, arg5) (*(type)proc)(arg1, arg2, arg3, arg4, arg5) |
52 |
|
|
#define CallMacOS6(type, proc, arg1, arg2, arg3, arg4, arg5, arg6) (*(type)proc)(arg1, arg2, arg3, arg4, arg5, arg6) |
53 |
|
|
#define CallMacOS7(type, proc, arg1, arg2, arg3, arg4, arg5, arg6, arg7) (*(type)proc)(arg1, arg2, arg3, arg4, arg5, arg6, arg7) |
54 |
|
|
|
55 |
|
|
#endif |