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

pull/35/head
Jeffrey Walton 2015-07-26 13:50:16 -04:00
parent 5db65c051b
commit fedd08f15c
1 changed files with 2 additions and 1 deletions

View File

@ -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))