diff options
| author | nicole mazzuca <mazzucan@outlook.com> | 2020-07-31 11:53:18 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-31 11:53:18 -0700 |
| commit | 37f7d69757d7e52e21a391710fdbd3ef17f2540a (patch) | |
| tree | c019607db0d32d95d2c16f7f19eb851b03b9fa85 /toolsrc/src | |
| parent | f0ae3efbb4269a682e5732ec9d909949fed0d61d (diff) | |
| download | vcpkg-37f7d69757d7e52e21a391710fdbd3ef17f2540a.tar.gz vcpkg-37f7d69757d7e52e21a391710fdbd3ef17f2540a.zip | |
[vcpkg] Fix build on Windows 8.1 SDK (#12586)
Diffstat (limited to 'toolsrc/src')
| -rw-r--r-- | toolsrc/src/vcpkg/base/files.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/toolsrc/src/vcpkg/base/files.cpp b/toolsrc/src/vcpkg/base/files.cpp index 902b482d2..f2684633c 100644 --- a/toolsrc/src/vcpkg/base/files.cpp +++ b/toolsrc/src/vcpkg/base/files.cpp @@ -141,7 +141,12 @@ namespace vcpkg::Files const auto target = read_symlink_implementation(oldpath, ec); if (ec) return; - const DWORD flags = SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE; + const DWORD flags = +#if defined(SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE) + SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE; +#else + 0; +#endif if (!CreateSymbolicLinkW(newpath.c_str(), target.c_str(), flags)) { const auto err = GetLastError(); |
