summaryrefslogtreecommitdiff
path: root/trunk/tjutil.c
diff options
context:
space:
mode:
authordcommander <dcommander@3789f03b-4d11-0410-bbf8-ca57d06f2519>2011-05-24 17:03:51 +0000
committerdcommander <dcommander@3789f03b-4d11-0410-bbf8-ca57d06f2519>2011-05-24 17:03:51 +0000
commit6cf191202a9a221dbe86c4cddc8d1ebdcf6e5bf9 (patch)
tree3ed4ee98eaa963d0491e59dc5bc0ba816fb1db8b /trunk/tjutil.c
parent2a3667efe0f96fdced3cdc5a77de64a9080d6851 (diff)
Fix build on Windows
git-svn-id: https://libjpeg-turbo.svn.sourceforge.net/svnroot/libjpeg-turbo@636 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'trunk/tjutil.c')
-rw-r--r--trunk/tjutil.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/trunk/tjutil.c b/trunk/tjutil.c
index 5e22fee..6618d15 100644
--- a/trunk/tjutil.c
+++ b/trunk/tjutil.c
@@ -37,11 +37,12 @@ static double getfreq(void)
return (double)freq.QuadPart;
}
-static double f=getfreq();
+static double f=-1.0;
double gettime(void)
{
LARGE_INTEGER t;
+ if(f<0.0) f=getfreq();
if(f==0.0) return (double)GetTickCount()/1000.;
else
{