1 |
|
/* |
2 |
|
* sysdeps.h - System dependent definitions |
3 |
|
* |
4 |
< |
* cxmon (C) 1997-2000 Christian Bauer, Marc Hellwig |
4 |
> |
* cxmon (C) 1997-2004 Christian Bauer, 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 |
68 |
|
#else |
69 |
|
#error "No 4 byte type, you lose." |
70 |
|
#endif |
71 |
+ |
#if SIZEOF_LONG == 8 |
72 |
+ |
typedef unsigned long uint64; |
73 |
+ |
typedef long int64; |
74 |
+ |
#define VAL64(a) (a ## l) |
75 |
+ |
#define UVAL64(a) (a ## ul) |
76 |
+ |
#elif SIZEOF_LONG_LONG == 8 |
77 |
+ |
typedef unsigned long long uint64; |
78 |
+ |
typedef long long int64; |
79 |
+ |
#define VAL64(a) (a ## LL) |
80 |
+ |
#define UVAL64(a) (a ## uLL) |
81 |
+ |
#else |
82 |
+ |
#error "No 8 byte type, you lose." |
83 |
+ |
#endif |
84 |
+ |
#if SIZEOF_VOID_P == 4 |
85 |
+ |
typedef uint32 uintptr; |
86 |
+ |
typedef int32 intptr; |
87 |
+ |
#elif SIZEOF_VOID_P == 8 |
88 |
+ |
typedef uint64 uintptr; |
89 |
+ |
typedef int64 intptr; |
90 |
+ |
#else |
91 |
+ |
#error "Unsupported size of pointer" |
92 |
+ |
#endif |
93 |
|
|
94 |
|
#endif // def __BEOS__ |
95 |
|
|