--- Frodo4/Src/sysdeps.h 2003/07/01 17:09:43 1.1 +++ Frodo4/Src/sysdeps.h 2007/01/28 13:44:05 1.10 @@ -2,7 +2,7 @@ * sysdeps.h - Try to include the right system headers and get other * system-specific stuff right * - * Frodo (C) 1994-1997,2002 Christian Bauer + * Frodo (C) 1994-1997,2002-2005 Christian Bauer * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -21,18 +21,15 @@ #include "sysconfig.h" -extern "C" -{ - #include #include #include #include - -#ifndef __PSXOS__ #include #include -#endif + +#include +using std::vector; #ifdef HAVE_SYS_TYPES_H #include @@ -95,9 +92,7 @@ extern "C" # if HAVE_SYS_TIME_H # include # else -#ifndef __PSXOS__ # include -#endif # endif #endif @@ -116,19 +111,12 @@ extern "C" # endif #endif -#ifndef __PSXOS__ -#include -#endif #include #if EEXIST == ENOTEMPTY #define BROKEN_OS_PROBABLY_AIX #endif -#ifdef HAVE_LINUX_JOYSTICK_H -#include -#endif - #ifdef __NeXT__ #define S_IRUSR S_IREAD #define S_IWUSR S_IWRITE @@ -194,7 +182,27 @@ typedef long int32; #else #error No 4 byte type, you lose. #endif -#endif // __BEOS__ -#define UNUSED(x) (x = x) -} +#if SIZEOF_LONG == 8 +typedef unsigned long uint64; +typedef long int64; +#elif SIZEOF_LONG_LONG == 8 +typedef unsigned long long uint64; +typedef long long int64; +#else +#error No 8 byte type, you lose. +#endif + +#if SIZEOF_VOID_P == 4 +typedef uint32 uintptr; +typedef int32 intptr; +#elif SIZEOF_VOID_P == 8 +typedef uint64 uintptr; +typedef int64 intptr; +#else +#error Unsupported size of pointer +#endif + +#else +#include +#endif // __BEOS__