Skip to content

Commit

Permalink
fix(eoEvalUserTimeThrowException): preprocessor test for POSIX and no…
Browse files Browse the repository at this point in the history
…t UNIX
  • Loading branch information
jdreo committed Sep 10, 2024
1 parent 32195a4 commit fdc09e1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions eo/src/eoEvalUserTimeThrowException.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ Contact: http://eodev.sourceforge.net
Johann Dréo <johann.dreo@thalesgroup.com>
*/

#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__
Expand All @@ -40,7 +40,7 @@ Johann Dréo <johann.dreo@thalesgroup.com>

#include "eoExceptions.h"

#ifdef __unix__
#ifdef _POSIX_VERSION

#include <sys/time.h>
#include <sys/resource.h>
Expand Down Expand Up @@ -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)

0 comments on commit fdc09e1

Please sign in to comment.