diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2002-10-04 21:45:04 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2002-10-04 21:45:04 +0000 |
commit | 518ee466c969f557a66461999fce39c3d3eea352 (patch) | |
tree | c3b417a0a51764f1ed646b44928f4c34005368ea /hrtimer.cpp | |
parent | b21162cf8e06f40baa1f58be6a8c17435cebc34d (diff) | |
download | cryptopp-518ee466c969f557a66461999fce39c3d3eea352.tar.gz |
compatibility fixes for MacOS X
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@6 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'hrtimer.cpp')
-rw-r--r-- | hrtimer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hrtimer.cpp b/hrtimer.cpp index 2dafbca..5245841 100644 --- a/hrtimer.cpp +++ b/hrtimer.cpp @@ -8,7 +8,7 @@ #if defined(CRYPTOPP_WIN32_AVAILABLE) #include <windows.h> -#elif defined(__unix__) +#elif defined(CRYPTOPP_UNIX_AVAILABLE) #include <sys/time.h> #elif defined(macintosh) #include <Timer.h> @@ -24,7 +24,7 @@ word64 Timer::GetCurrentTimerValue() FILETIME now; GetSystemTimeAsFileTime(&now); return now.dwLowDateTime + ((word64)now.dwHighDateTime << 32); -#elif defined(__unix__) +#elif defined(CRYPTOPP_UNIX_AVAILABLE) timeval now; gettimeofday(&now, NULL); return (word64)now.tv_sec * 1000000 + now.tv_usec; |