diff --git a/eo/src/eoEvalUserTimeThrowException.h b/eo/src/eoEvalUserTimeThrowException.h index 1e2edda6f..c4655ac41 100644 --- a/eo/src/eoEvalUserTimeThrowException.h +++ b/eo/src/eoEvalUserTimeThrowException.h @@ -21,9 +21,9 @@ Contact: http://eodev.sourceforge.net Johann Dréo */ -#if !defined(__unix__) && !defined(_WINDOWS) +#if !defined(_POSIX_VERSION) && !defined(_WINDOWS) #warning "Warning: class 'eoEvalUserTimeThrowException' is only available under UNIX (defining 'rusage' in 'sys/resource.h') or Win32 (defining 'GetProcessTimes' in 'WinBase.h') systems, contributions for other systems are welcomed." -#else //!defined(__unix__) && !defined(_WINDOWS) +#else //!defined(_POSIX_VERSION) && !defined(_WINDOWS) #ifndef __EOEVALUSERTIMETHROWEXCEPTION_H__ #define __EOEVALUSERTIMETHROWEXCEPTION_H__ @@ -40,7 +40,7 @@ Johann Dréo #include "eoExceptions.h" -#ifdef __unix__ +#ifdef _POSIX_VERSION #include #include @@ -106,6 +106,6 @@ class eoEvalUserTimeThrowException : public eoEvalFuncCounter< EOT > }; #endif // _WINDOWS -#endif //__unix__ +#endif //_POSIX_VERSION #endif // __EOEVALUSERTIMETHROWEXCEPTION_H__ -#endif //!defined(__unix__) && !defined(_WINDOWS) +#endif //!defined(_POSIX_VERSION) && !defined(_WINDOWS)