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> |
47 |
|
// 64 bit file offsets |
48 |
|
typedef off_t loff_t; |
49 |
|
|
50 |
+ |
// Data types |
51 |
+ |
typedef uint32 uintptr; |
52 |
+ |
typedef int32 intptr; |
53 |
+ |
|
54 |
|
// Macro for calling MacOS routines |
55 |
|
#define CallMacOS(type, proc) (*(type)proc)() |
56 |
|
#define CallMacOS1(type, proc, arg1) (*(type)proc)(arg1) |