# HG changeset patch # User Eric Wing # Date 1340091096 25200 # Node ID 8063b19bd40ea256dadfa6c4db8539e0e8a7328f # Parent 7a4a8459f0c15e72b8b9b5db96a36f8437149b79 Attempt to fix GetTicks compile error on Windows (can't do math on a struct). Taking the QuadPart of the struct. SDL seems to do something similar. Thanks to Johnson Lin reporting this issue! Johnson Lin < arch . jslin - at - gmail . com > diff -r 7a4a8459f0c1 -r 8063b19bd40e ALmixer.c --- a/ALmixer.c Tue Jun 19 00:31:12 2012 -0700 +++ b/ALmixer.c Tue Jun 19 00:31:36 2012 -0700 @@ -307,7 +307,7 @@ if(TRUE == QueryPerformanceFrequency(&hi_res_ticks_per_second)) { QueryPerformanceCounter(&s_ticksBaseTime); - s_hiResSecondsPerTick = 1.0 / hi_res_ticks_per_second; + s_hiResSecondsPerTick = 1.0 / hi_res_ticks_per_second.QuadPart; } else {