aboutsummaryrefslogtreecommitdiff
path: root/tests/timestamp/driver.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-05-13 00:29:50 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-05-15 15:58:03 +0300
commitc4a9db2f981a03aecf5e9a60e6d27a6dc6dac159 (patch)
treeb40c731b0e1ebdc8abdafddfadc919b64baef8f0 /tests/timestamp/driver.cxx
parent041b2137f7351abc8d648ed6a0399feaf331af08 (diff)
Fix VC15 warnings (/W3)
Diffstat (limited to 'tests/timestamp/driver.cxx')
-rw-r--r--tests/timestamp/driver.cxx10
1 files changed, 8 insertions, 2 deletions
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 <time.h> // tzset()
+#include <time.h> // tzset() (POSIX), _tzset() (Windows)
#include <chrono>
#include <locale>
@@ -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 %[].
//