diff options
| author | İsmail Dönmez <ismail@users.noreply.github.com> | 2019-06-13 01:30:03 +0200 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2019-06-12 16:30:03 -0700 |
| commit | 8c49e565c0eb565fd76df76144dd78d70a211d6e (patch) | |
| tree | 2a002c9389754349ee39852b8417a7637c7a0243 /toolsrc/src/tests.paragraph.cpp | |
| parent | 70149722d758c21b5f49a22f3a4a0c15ea8c6852 (diff) | |
| download | vcpkg-8c49e565c0eb565fd76df76144dd78d70a211d6e.tar.gz vcpkg-8c49e565c0eb565fd76df76144dd78d70a211d6e.zip | |
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.
Diffstat (limited to 'toolsrc/src/tests.paragraph.cpp')
| -rw-r--r-- | toolsrc/src/tests.paragraph.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/toolsrc/src/tests.paragraph.cpp b/toolsrc/src/tests.paragraph.cpp index 9a56ad9ee..e99d07694 100644 --- a/toolsrc/src/tests.paragraph.cpp +++ b/toolsrc/src/tests.paragraph.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; |
