Skip to content

Commit

Permalink
Visual Studio: use #pragma warning(push/pop) instead of warning(defau…
Browse files Browse the repository at this point in the history
…lt: ...)
  • Loading branch information
jedisct1 committed Sep 19, 2014
1 parent 05f46af commit d92d531
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,10 @@ sodium_hrtime(void)
#ifdef _WIN32
struct _timeb tb;

# pragma warning(push)
# pragma warning(disable: 4996)
_ftime(&tb);
# pragma warning(default: 4996)
# pragma warning(pop)
tv.tv_sec = (long) tb.time;
tv.tv_usec = ((int) tb.millitm) * 1000;
ret = 0;
Expand Down

0 comments on commit d92d531

Please sign in to comment.