- 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:
parent
35d6803581
commit
48d981b030
@ -2,10 +2,12 @@
|
|||||||
# define OS_WIN
|
# define OS_WIN
|
||||||
#elif defined(linux)
|
#elif defined(linux)
|
||||||
# define OS_LINUX
|
# define OS_LINUX
|
||||||
|
# define OS_UNIX
|
||||||
#elif defined(macintosh)
|
#elif defined(macintosh)
|
||||||
# define OS_MACOS
|
# define OS_MACOS
|
||||||
#elif defined(__APPLE__) && defined(__MACH__)
|
#elif defined(__APPLE__) && defined(__MACH__)
|
||||||
# define OS_MACOSX
|
# define OS_MACOSX
|
||||||
|
# define OS_UNIX
|
||||||
#else
|
#else
|
||||||
# error "unknown OS - add define here"
|
# error "unknown OS - add define here"
|
||||||
#endif
|
#endif
|
||||||
@ -23,5 +25,12 @@
|
|||||||
#undef HAVE_GETTIMEOFDAY
|
#undef HAVE_GETTIMEOFDAY
|
||||||
#undef HAVE_X
|
#undef HAVE_X
|
||||||
|
|
||||||
|
#ifdef OS_UNIX
|
||||||
|
# define HAVE_GETTIMEOFDAY
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef OS_LINUX
|
||||||
|
# define HAVE_X
|
||||||
|
#endif
|
||||||
|
|
||||||
#undef CONFIG_DISABLE_EXCEPTIONS
|
#undef CONFIG_DISABLE_EXCEPTIONS
|
||||||
|
Loading…
Reference in New Issue
Block a user