-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(eoEvalUserTimeThrowException): preprocessor test for POSIX and no…
…t UNIX
- Loading branch information
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,9 +21,9 @@ Contact: http://eodev.sourceforge.net | |
Johann Dréo <[email protected]> | ||
*/ | ||
|
||
#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 <[email protected]> | |
|
||
#include "eoExceptions.h" | ||
|
||
#ifdef __unix__ | ||
#ifdef _POSIX_VERSION | ||
|
||
#include <sys/time.h> | ||
#include <sys/resource.h> | ||
|
@@ -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) |