summaryrefslogtreecommitdiff
path: root/hrtimer.cpp
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2006-12-25 08:10:19 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2006-12-25 08:10:19 +0000
commit16067bd47aa5474d7db5606f5831f92db5d53592 (patch)
treedabab96c70086dac00be0a2f296193b59936d94b /hrtimer.cpp
parente2c5bf3e232f1310e83216e4be2e48d42a964e9a (diff)
downloadcryptopp-16067bd47aa5474d7db5606f5831f92db5d53592.tar.gz
fix compile on MSVC2002 and MSVC6 without Processor Pack
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@276 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'hrtimer.cpp')
-rw-r--r--hrtimer.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/hrtimer.cpp b/hrtimer.cpp
index 6fe9b56..71149ba 100644
--- a/hrtimer.cpp
+++ b/hrtimer.cpp
@@ -23,13 +23,7 @@ double TimerBase::ConvertTo(TimerWord t, Unit unit)
static unsigned long unitsPerSecondTable[] = {1, 1000, 1000*1000, 1000*1000*1000};
assert(unit < sizeof(unitsPerSecondTable) / sizeof(unitsPerSecondTable[0]));
-#if defined(_MSC_VER) && (_MSC_VER < 1300)
- // MSVC 6 workaround
- return (double)(__int64)t * unitsPerSecondTable[unit] / (__int64)TicksPerSecond();
-#else
- return (double)t * unitsPerSecondTable[unit] / TicksPerSecond();
-#endif
-
+ return (double)CRYPTOPP_VC6_INT64 t * unitsPerSecondTable[unit] / CRYPTOPP_VC6_INT64 TicksPerSecond();
}
void TimerBase::StartTimer()