aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-11-26 01:30:48 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-11-26 01:30:48 +0300
commitad6cee2e8bacebd876eb9171d0ea3f5e787746f9 (patch)
tree06c3a51e8b5f94c2a205971e330a3c4780a0c628
parent122781fb093a46804d33b26e01233925ba4cd965 (diff)
Add support for VC15
-rw-r--r--tests/base64/driver.cxx4
-rw-r--r--tests/timestamp/driver.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/base64/driver.cxx b/tests/base64/driver.cxx
index a65ddbb..05fc359 100644
--- a/tests/base64/driver.cxx
+++ b/tests/base64/driver.cxx
@@ -24,9 +24,9 @@ encode (const string& i, const string& o)
{
is.seekg (0);
- // VC 19 seekg() doesn't clear eofbit.
+ // VC15 seekg() doesn't clear eofbit.
//
-#if defined(_MSC_VER) && _MSC_VER <= 1900
+#if defined(_MSC_VER) && _MSC_VER <= 1910
is.clear ();
#endif
diff --git a/tests/timestamp/driver.cxx b/tests/timestamp/driver.cxx
index e732629..42ad3fd 100644
--- a/tests/timestamp/driver.cxx
+++ b/tests/timestamp/driver.cxx
@@ -109,12 +109,12 @@ main ()
//
assert (fail ("Apr 08 19:31:10.123456789 ABC", "%b %d %H:%M:%S%[.N] %Y"));
-// This doesn't work in VC 19 because their implementation of std::get_time()
+// This doesn't work in VC15 because their implementation of std::get_time()
// has a bug. Due to this bug std::get_time() parses the input
// "Apr 19:31:10 2016" for the format "%b %d %H:%M:%S %Y" as if the input were
// "Apr 19 00:31:10 2016".
//
-#if !defined(_MSC_VER) || _MSC_VER > 1900
+#if !defined(_MSC_VER) || _MSC_VER > 1910
assert (fail ("Apr 19:31:10 2016", "%b %d %H:%M:%S %Y"));
assert (fail (":31 2016", "%H:%M %Y"));
#endif