1 |
|
/* |
2 |
|
* sysdeps.h - System dependent definitions for BeOS |
3 |
|
* |
4 |
< |
* SheepShaver (C) 1997-2002 Christian Bauer and Marc Hellwig |
4 |
> |
* SheepShaver (C) 1997-2005 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 |
21 |
|
#ifndef SYSDEPS_H |
22 |
|
#define SYSDEPS_H |
23 |
|
|
24 |
+ |
// Do we have std namespace? |
25 |
+ |
#ifdef __POWERPC__ |
26 |
+ |
#define NO_STD_NAMESPACE |
27 |
+ |
#endif |
28 |
+ |
|
29 |
|
#include <assert.h> |
30 |
|
#include <sys/types.h> |
31 |
|
#include <KernelKit.h> |
35 |
|
// Are we using a PPC emulator or the real thing? |
36 |
|
#ifdef __POWERPC__ |
37 |
|
#define EMULATED_PPC 0 |
38 |
+ |
#define WORDS_BIGENDIAN 1 |
39 |
|
#else |
40 |
|
#define EMULATED_PPC 1 |
41 |
+ |
#undef WORDS_BIGENDIAN |
42 |
|
#endif |
43 |
|
|
44 |
|
#define POWERPC_ROM 1 |
49 |
|
// 64 bit file offsets |
50 |
|
typedef off_t loff_t; |
51 |
|
|
52 |
+ |
// Data types |
53 |
+ |
typedef uint32 uintptr; |
54 |
+ |
typedef int32 intptr; |
55 |
+ |
|
56 |
+ |
// Timing functions |
57 |
+ |
extern void Delay_usec(uint32 usec); |
58 |
+ |
|
59 |
|
// Macro for calling MacOS routines |
60 |
|
#define CallMacOS(type, proc) (*(type)proc)() |
61 |
|
#define CallMacOS1(type, proc, arg1) (*(type)proc)(arg1) |