forked from 0ad/0ad
36 lines
708 B
C
Executable File
36 lines
708 B
C
Executable File
#if defined(_WIN32)
|
|
# define OS_WIN
|
|
#elif defined(linux)
|
|
# define OS_LINUX
|
|
#elif defined(macintosh)
|
|
# define OS_MACOS
|
|
#elif defined(__APPLE__) && defined(__MACH__)
|
|
# define OS_MACOSX
|
|
#else
|
|
# error "unknown OS - add define here"
|
|
#endif
|
|
|
|
|
|
// HAVE_C99: check if compiler advertises support for C99
|
|
// (make sure it's #defined before testing value to avoid ICC warning)
|
|
#undef HAVE_C99
|
|
#ifdef __STDC_VERSION__
|
|
# if __STDC_VERSION__ >= 199901L
|
|
# define HAVE_C99
|
|
# endif
|
|
#endif
|
|
|
|
#undef HAVE_GETTIMEOFDAY
|
|
#undef HAVE_X
|
|
|
|
|
|
#undef CONFIG_DISABLE_EXCEPTIONS
|
|
|
|
// TODO: where does this belong?
|
|
#ifdef CONFIG_DISABLE_EXCEPTIONS
|
|
# ifdef _WIN32
|
|
# define _HAS_EXCEPTIONS 0
|
|
# else
|
|
# define STL_NO_EXCEPTIONS
|
|
# endif
|
|
#endif |