2004-03-03 00:56:51 +01:00
|
|
|
#if defined(_WIN32)
|
|
|
|
# define OS_WIN
|
|
|
|
#elif defined(linux)
|
|
|
|
# define OS_LINUX
|
2004-06-02 16:31:27 +02:00
|
|
|
# define OS_UNIX
|
2004-03-03 00:56:51 +01:00
|
|
|
#elif defined(macintosh)
|
|
|
|
# define OS_MACOS
|
|
|
|
#elif defined(__APPLE__) && defined(__MACH__)
|
|
|
|
# define OS_MACOSX
|
2004-06-02 16:31:27 +02:00
|
|
|
# define OS_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-02 17:00:23 +02:00
|
|
|
#undef CONFIG_DISABLE_EXCEPTIONS
|
|
|
|
|
|
|
|
|
|
|
|
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
|
|
|
|
# define HAVE_C99
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
# define HAVE_ASM
|
2004-06-04 14:41:53 +02:00
|
|
|
//# define HAVE_PCH
|
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
|
|
|
|