Cleared compiler error due to use of "LARGE_INTEGER freq = { .QuadPart = 0 };". 32-bit and 64-bit compilers accept "{ {0,0} }". Note the original code was OK, and we were probably woking around a GCC issue
parent
5db65c051b
commit
fedd08f15c
|
|
@ -78,7 +78,8 @@ TimerWord Timer::GetCurrentTimerValue()
|
|||
TimerWord Timer::TicksPerSecond()
|
||||
{
|
||||
#if defined(CRYPTOPP_WIN32_AVAILABLE)
|
||||
static LARGE_INTEGER freq = { .QuadPart = 0 };
|
||||
// Hack to silence GCC under MinGW
|
||||
static LARGE_INTEGER freq = { {0,0} };
|
||||
if (freq.QuadPart == 0)
|
||||
{
|
||||
if (!QueryPerformanceFrequency(&freq))
|
||||
|
|
|
|||
Loading…
Reference in New Issue