From d2ba09e6ffa9efd600219dae29dc30b3aa68e9d8 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Fri, 19 Sep 2014 22:46:09 +0200 Subject: [PATCH] Fix linking error under Win 7 - do not import MinCore_Downlevel.lib if target is Win 7 or earlier. --- modules/highgui/src/cap_msmf.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/highgui/src/cap_msmf.cpp b/modules/highgui/src/cap_msmf.cpp index 80cb6255c..cc522e1e4 100644 --- a/modules/highgui/src/cap_msmf.cpp +++ b/modules/highgui/src/cap_msmf.cpp @@ -78,7 +78,9 @@ #pragma comment(lib, "mfuuid") #pragma comment(lib, "Strmiids") #pragma comment(lib, "Mfreadwrite") +#if (WINVER >= 0x0602) // Available since Win 8 #pragma comment(lib, "MinCore_Downlevel") +#endif #include