From 61922f919fca03ebd554a0ab9a26dffead947250 Mon Sep 17 00:00:00 2001 From: Griffin Downs Date: Tue, 12 Mar 2019 16:46:40 -0700 Subject: [PATCH] Update check for VS2015 --- toolsrc/include/vcpkg/base/files.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/toolsrc/include/vcpkg/base/files.h b/toolsrc/include/vcpkg/base/files.h index 3fdcdaf7ba..b247783086 100644 --- a/toolsrc/include/vcpkg/base/files.h +++ b/toolsrc/include/vcpkg/base/files.h @@ -10,7 +10,8 @@ namespace fs { -#if defined(_WIN32) || defined(__cpp_lib_filesystem) +// VS2015 (_MSC_VER 1900) uses std::experimental::filesystem +#if (defined(_MSC_VER) && _MSC_VER > 1900) || defined(__cpp_lib_filesystem) namespace stdfs = std::filesystem; #else namespace stdfs = std::experimental::filesystem;