diff --git a/lib/Support/Windows/Path.inc b/lib/Support/Windows/Path.inc index 52284d94f1a..1694cb28b23 100644 --- a/lib/Support/Windows/Path.inc +++ b/lib/Support/Windows/Path.inc @@ -31,6 +31,10 @@ typedef int errno_t; #endif +#ifdef _MSC_VER +# pragma comment(lib, "advapi32.lib") // This provides CryptAcquireContextW. +#endif + using namespace llvm; namespace {