aboutsummaryrefslogtreecommitdiff
path: root/libbutl/regex.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-05-18 14:43:54 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-05-18 14:43:54 +0300
commit7129383fde53ab1d74b43f31ed67d50674839f08 (patch)
treee507d23b592329fb26e6100ea12f0beed51e6e33 /libbutl/regex.cxx
parentb946e380d4e414cec85082ebe67c8ffed6579277 (diff)
Add workarounds for all releases of VC15
Diffstat (limited to 'libbutl/regex.cxx')
-rw-r--r--libbutl/regex.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbutl/regex.cxx b/libbutl/regex.cxx
index a48102a..90374cd 100644
--- a/libbutl/regex.cxx
+++ b/libbutl/regex.cxx
@@ -15,7 +15,7 @@
#include <ostream>
#include <sstream>
#include <stdexcept> // runtime_error
-#if defined(_MSC_VER) && _MSC_VER <= 1914
+#if defined(_MSC_VER) && _MSC_VER < 1920
# include <cstring> // strstr()
#endif
#endif
@@ -52,7 +52,7 @@ namespace std
{
const char* d (e.what ());
-#if defined(_MSC_VER) && _MSC_VER <= 1914
+#if defined(_MSC_VER) && _MSC_VER < 1920
// Note: run the regex test like this to check new VC version:
//
// ./driver.exe a '{' b