mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Merge pull request #105 from cinaera/pr_detail
Fix C89-compatibility compiler error
This commit is contained in:
commit
727baa0604
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue