From c4a9db2f981a03aecf5e9a60e6d27a6dc6dac159 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 13 May 2017 00:29:50 +0300 Subject: Fix VC15 warnings (/W3) --- tests/timestamp/driver.cxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'tests/timestamp') diff --git a/tests/timestamp/driver.cxx b/tests/timestamp/driver.cxx index b268e00..d1e8d2c 100644 --- a/tests/timestamp/driver.cxx +++ b/tests/timestamp/driver.cxx @@ -2,7 +2,7 @@ // copyright : Copyright (c) 2014-2017 Code Synthesis Ltd // license : MIT; see accompanying LICENSE file -#include // tzset() +#include // tzset() (POSIX), _tzset() (Windows) #include #include @@ -80,7 +80,13 @@ ns (unsigned long long t) int main () { - tzset (); // To use butl::to_stream() later on. + // To use butl::to_stream() later on. + // +#ifndef _WIN32 + tzset (); +#else + _tzset (); +#endif // Invalid %[]. // -- cgit v1.1