Disable MSVC deprecation warning just for _ftime()
This commit is contained in:
parent
fe586939f6
commit
a4264a221f
@ -67,7 +67,9 @@ sodium_hrtime(void)
|
||||
#ifdef _WIN32
|
||||
struct _timeb tb;
|
||||
|
||||
# pragma warning(disable: 4996)
|
||||
_ftime(&tb);
|
||||
# pragma warning(default: 4996)
|
||||
tv.tv_sec = (long) tb.time;
|
||||
tv.tv_usec = ((int) tb.millitm) * 1000;
|
||||
ret = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user