From 25cf51637d0eaaab4843d050fd3aad271d60f5d2 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Thu, 25 Sep 2014 11:45:11 +0200 Subject: [PATCH] Fix linking error under Win 7 - do not import MinCore_Downlevel.lib if target is Win 7 or earlier. Applied in PR3243 to 2.4 branch. --- modules/videoio/src/cap_msmf.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/videoio/src/cap_msmf.cpp b/modules/videoio/src/cap_msmf.cpp index 2ef4ac236b..2c7f0ea879 100644 --- a/modules/videoio/src/cap_msmf.cpp +++ b/modules/videoio/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