From 16067bd47aa5474d7db5606f5831f92db5d53592 Mon Sep 17 00:00:00 2001 From: weidai Date: Mon, 25 Dec 2006 08:10:19 +0000 Subject: 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 --- hrtimer.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'hrtimer.cpp') 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() -- cgit v1.2.1