_ftime_s() was not available on Windows XP. And people still run XP.
This commit is contained in:
parent
03b122dd5d
commit
fe586939f6
@ -67,7 +67,7 @@ sodium_hrtime(void)
|
||||
#ifdef _WIN32
|
||||
struct _timeb tb;
|
||||
|
||||
_ftime_s(&tb);
|
||||
_ftime(&tb);
|
||||
tv.tv_sec = (long) tb.time;
|
||||
tv.tv_usec = ((int) tb.millitm) * 1000;
|
||||
ret = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user