From b93cc567325a4a9b43ccc3afff48631b9b181329 Mon Sep 17 00:00:00 2001 From: George Wu Date: Thu, 16 Apr 2020 12:21:09 +0200 Subject: [PATCH] Why, MSVC? --- appveyor.yml | 2 +- src/apps/common/utils.cpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 5c28dbd..73feaa7 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: '0.3.4.{build}' +version: '0.3.5.{build}' environment: matrix: - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 diff --git a/src/apps/common/utils.cpp b/src/apps/common/utils.cpp index 5f8144e..5b93f83 100644 --- a/src/apps/common/utils.cpp +++ b/src/apps/common/utils.cpp @@ -29,8 +29,9 @@ string common_utils::ReplaceExtension(const string &s, const string &oldExt, con // extensions are in ASCII, and we don't care about chars before the extension, // we can use this method (tolower()). Otherwise, it causes trouble for non- // ASCII encodings. - std::transform(sl.begin(), sl.end(), sl.begin(), std::tolower); - std::transform(extl.begin(), extl.end(), extl.begin(), std::tolower); + // Until VS 2019, tolower() is not present in std namespace. + std::transform(sl.begin(), sl.end(), sl.begin(), ::tolower); + std::transform(extl.begin(), extl.end(), extl.begin(), ::tolower); if (!hasEnding(sl, extl)) { return s;