Fix C89-compatibility compiler error

This commit is contained in:
BeaR 2014-11-10 14:09:42 +01:00
parent 4e9b6ea336
commit 29b5b92827

View file

@ -662,12 +662,14 @@ int64 time_get()
last = (int64)val.tv_sec*(int64)1000000+(int64)val.tv_usec;
return last;
#elif defined(CONF_FAMILY_WINDOWS)
int64 t;
QueryPerformanceCounter((PLARGE_INTEGER)&t);
if(t<last) /* for some reason, QPC can return values in the past */
return last;
last = t;
return t;
{
int64 t;
QueryPerformanceCounter((PLARGE_INTEGER)&t);
if(t<last) /* for some reason, QPC can return values in the past */
return last;
last = t;
return t;
}
#else
#error not implemented
#endif