2005-01-27 16:50:11 +01:00
|
|
|
|
2004-08-10 18:04:21 +02:00
|
|
|
//
|
|
|
|
// OS
|
|
|
|
//
|
|
|
|
|
|
|
|
// Windows
|
|
|
|
#if defined(_WIN32) || defined(WIN32)
|
2004-03-03 00:56:51 +01:00
|
|
|
# define OS_WIN
|
2004-08-20 16:02:53 +02:00
|
|
|
# define XP_WIN
|
2004-08-10 18:04:21 +02:00
|
|
|
// Linux
|
|
|
|
#elif defined(linux) || defined(__linux) || defined(__linux__)
|
2004-03-03 00:56:51 +01:00
|
|
|
# define OS_LINUX
|
2004-06-02 16:31:27 +02:00
|
|
|
# define OS_UNIX
|
2004-08-21 14:52:31 +02:00
|
|
|
# ifndef XP_UNIX
|
|
|
|
# define XP_UNIX
|
|
|
|
# endif
|
2004-08-10 18:04:21 +02:00
|
|
|
// Mac OS X
|
|
|
|
#elif defined(MAC_OS_X
|
2004-03-03 00:56:51 +01:00
|
|
|
# define OS_MACOSX
|
2004-06-02 16:31:27 +02:00
|
|
|
# define OS_UNIX
|
2004-08-20 16:02:53 +02:00
|
|
|
# define XP_UNIX
|
2004-08-10 18:04:21 +02:00
|
|
|
// Mac OS 9 or below
|
|
|
|
#elif defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__)
|
|
|
|
# define OS_MACOS
|
2004-08-20 16:02:53 +02:00
|
|
|
# define XP_MAC
|
2004-08-10 18:04:21 +02:00
|
|
|
// BSD
|
|
|
|
#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
|
|
|
# define OS_BSD
|
|
|
|
// Solaris
|
|
|
|
#elif defined(SOLARIS)
|
|
|
|
# define OS_SOLARIS
|
|
|
|
// BeOS
|
|
|
|
#elif defined(__BEOS__)
|
|
|
|
# define OS_BEOS
|
2004-08-20 16:02:53 +02:00
|
|
|
# define XP_BEOS
|
2004-08-10 18:04:21 +02:00
|
|
|
// Amiga
|
|
|
|
#elif defined(__amigaos__)
|
|
|
|
# define OS_AMIGA
|
|
|
|
// Unix-based
|
|
|
|
#elif defined(unix) || defined(__unix) || defined(_XOPEN_SOURCE) || defined(_POSIX_SOURCE)
|
|
|
|
# define OS_UNIX
|
2004-08-20 16:02:53 +02:00
|
|
|
# define XP_UNIX
|
2004-03-03 00:56:51 +01:00
|
|
|
#else
|
|
|
|
# error "unknown OS - add define here"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2004-06-02 17:00:23 +02:00
|
|
|
#undef HAVE_C99 // compiler advertises support for C99
|
|
|
|
|
|
|
|
#undef HAVE_ASM
|
2004-03-03 00:56:51 +01:00
|
|
|
|
|
|
|
#undef HAVE_GETTIMEOFDAY
|
|
|
|
#undef HAVE_X
|
|
|
|
|
2004-06-04 14:41:53 +02:00
|
|
|
#undef HAVE_PCH
|
|
|
|
|
2004-06-30 18:06:05 +02:00
|
|
|
#undef HAVE_DEBUGALLOC
|
|
|
|
|
2004-06-02 17:00:23 +02:00
|
|
|
#undef CONFIG_DISABLE_EXCEPTIONS
|
|
|
|
|
|
|
|
|
2004-06-11 04:14:18 +02:00
|
|
|
#ifdef __STDC_VERSION__ // nested #if to avoid ICC warning if not defined
|
|
|
|
# if __STDC_VERSION__ >= 199901L
|
|
|
|
# define HAVE_C99
|
|
|
|
# endif
|
2004-06-02 17:00:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
# define HAVE_ASM
|
2004-06-04 18:06:31 +02:00
|
|
|
# define HAVE_PCH
|
2004-07-07 21:40:20 +02:00
|
|
|
#endif
|
|
|
|
|
2004-07-22 15:25:01 +02:00
|
|
|
#if defined(_MSC_VER) && defined(HAVE_PCH) && !( defined(NDEBUG) || defined(TESTING) )
|
2005-01-23 19:25:28 +01:00
|
|
|
// # define HAVE_DEBUGALLOC
|
2004-06-02 17:00:23 +02:00
|
|
|
#endif
|
|
|
|
|
2004-06-02 16:31:27 +02:00
|
|
|
#ifdef OS_UNIX
|
|
|
|
# define HAVE_GETTIMEOFDAY
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef OS_LINUX
|
|
|
|
# define HAVE_X
|
|
|
|
#endif
|
2004-03-03 00:56:51 +01:00
|
|
|
|
2004-06-02 17:00:23 +02:00
|
|
|
|