aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/PostBuildLint.cpp
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-05-04 15:19:22 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2017-05-04 15:19:22 -0700
commit05b47002ebbf99561476564cb9dfe1869cb79c7c (patch)
treed087bbd7cf5ee058f56f9ab93c0e89835216f5ab /toolsrc/src/PostBuildLint.cpp
parent7bdf189a921fdee47044e907a3ff48ce8c880fe2 (diff)
downloadvcpkg-05b47002ebbf99561476564cb9dfe1869cb79c7c.tar.gz
vcpkg-05b47002ebbf99561476564cb9dfe1869cb79c7c.zip
Introduce Strings::case_insensitive_ascii_compare()
Diffstat (limited to 'toolsrc/src/PostBuildLint.cpp')
-rw-r--r--toolsrc/src/PostBuildLint.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/toolsrc/src/PostBuildLint.cpp b/toolsrc/src/PostBuildLint.cpp
index befbf1e45..294645e82 100644
--- a/toolsrc/src/PostBuildLint.cpp
+++ b/toolsrc/src/PostBuildLint.cpp
@@ -700,7 +700,8 @@ namespace vcpkg::PostBuildLint
std::vector<fs::path> misplaced_files = fs.get_files_non_recursive(dir);
Util::unstable_keep_if(misplaced_files, [&fs](const fs::path& path) {
const std::string filename = path.filename().generic_string();
- if (_stricmp(filename.c_str(), "CONTROL") == 0 || _stricmp(filename.c_str(), "BUILD_INFO") == 0)
+ if (Strings::case_insensitive_ascii_compare(filename.c_str(), "CONTROL") == 0 ||
+ Strings::case_insensitive_ascii_compare(filename.c_str(), "BUILD_INFO") == 0)
return false;
return !fs.is_directory(path);
});