2 |
|
* sysdeps.h - Try to include the right system headers and get other |
3 |
|
* system-specific stuff right |
4 |
|
* |
5 |
< |
* Frodo (C) 1994-1997,2002-2003 Christian Bauer |
5 |
> |
* Frodo (C) 1994-1997,2002-2005 Christian Bauer |
6 |
|
* |
7 |
|
* This program is free software; you can redistribute it and/or modify |
8 |
|
* it under the terms of the GNU General Public License as published by |
21 |
|
|
22 |
|
#include "sysconfig.h" |
23 |
|
|
24 |
– |
extern "C" |
25 |
– |
{ |
26 |
– |
|
24 |
|
#include <stdio.h> |
25 |
|
#include <stdlib.h> |
26 |
|
#include <assert.h> |
28 |
|
#include <errno.h> |
29 |
|
#include <signal.h> |
30 |
|
|
31 |
+ |
#include <vector> |
32 |
+ |
using std::vector; |
33 |
+ |
|
34 |
|
#ifdef HAVE_SYS_TYPES_H |
35 |
|
#include <sys/types.h> |
36 |
|
#endif |
117 |
|
#define BROKEN_OS_PROBABLY_AIX |
118 |
|
#endif |
119 |
|
|
120 |
– |
#ifdef HAVE_LINUX_JOYSTICK_H |
121 |
– |
#include <linux/joystick.h> |
122 |
– |
#endif |
123 |
– |
|
120 |
|
#ifdef __NeXT__ |
121 |
|
#define S_IRUSR S_IREAD |
122 |
|
#define S_IWUSR S_IWRITE |
182 |
|
#else |
183 |
|
#error No 4 byte type, you lose. |
184 |
|
#endif |
185 |
+ |
|
186 |
+ |
#if SIZEOF_LONG == 8 |
187 |
+ |
typedef unsigned long uint64; |
188 |
+ |
typedef long int64; |
189 |
+ |
#elif SIZEOF_LONG_LONG == 8 |
190 |
+ |
typedef unsigned long long uint64; |
191 |
+ |
typedef long long int64; |
192 |
+ |
#else |
193 |
+ |
#error No 8 byte type, you lose. |
194 |
+ |
#endif |
195 |
+ |
|
196 |
+ |
#if SIZEOF_VOID_P == 4 |
197 |
+ |
typedef uint32 uintptr; |
198 |
+ |
typedef int32 intptr; |
199 |
+ |
#elif SIZEOF_VOID_P == 8 |
200 |
+ |
typedef uint64 uintptr; |
201 |
+ |
typedef int64 intptr; |
202 |
+ |
#else |
203 |
+ |
#error Unsupported size of pointer |
204 |
+ |
#endif |
205 |
+ |
|
206 |
+ |
#else |
207 |
|
#include <support/SupportDefs.h> |
208 |
|
#endif // __BEOS__ |
191 |
– |
|
192 |
– |
} |