From 8c49e565c0eb565fd76df76144dd78d70a211d6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20D=C3=B6nmez?= Date: Thu, 13 Jun 2019 01:30:03 +0200 Subject: Protect #pragma comment(lib, "foo") with _WIN32 checks (#6867) lld on Linux can now process #pragma comment(lib, "foo") macros which results in build failures on Linux when lld is used. Fix this by protecting these macros with _WIN32 checks. --- toolsrc/src/tests.dependencies.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'toolsrc/src/tests.dependencies.cpp') diff --git a/toolsrc/src/tests.dependencies.cpp b/toolsrc/src/tests.dependencies.cpp index f82fad4e4..7d8283ed6 100644 --- a/toolsrc/src/tests.dependencies.cpp +++ b/toolsrc/src/tests.dependencies.cpp @@ -1,7 +1,9 @@ #include "tests.pch.h" +#if defined(_WIN32) #pragma comment(lib, "version") #pragma comment(lib, "winhttp") +#endif using namespace Microsoft::VisualStudio::CppUnitTestFramework; -- cgit v1.2.3