- Added a OS_UNIX define for unix variants (Linux and Mac OS X)

- OS_UNIX => HAVE_GETTIMOFDAY
- OS_LINUX => HAVE_X

This was SVN commit r346.
This commit is contained in:
Simon Brenner 2004-06-02 14:31:27 +00:00
parent 35d6803581
commit 48d981b030

View File

@ -2,10 +2,12 @@
# define OS_WIN
#elif defined(linux)
# define OS_LINUX
# define OS_UNIX
#elif defined(macintosh)
# define OS_MACOS
#elif defined(__APPLE__) && defined(__MACH__)
# define OS_MACOSX
# define OS_UNIX
#else
# error "unknown OS - add define here"
#endif
@ -23,5 +25,12 @@
#undef HAVE_GETTIMEOFDAY
#undef HAVE_X
#ifdef OS_UNIX
# define HAVE_GETTIMEOFDAY
#endif
#ifdef OS_LINUX
# define HAVE_X
#endif
#undef CONFIG_DISABLE_EXCEPTIONS