Fix linking error under Win 7 - do not import MinCore_Downlevel.lib if target is...
authorArtur Wieczorek <artwik@wp.pl>
Thu, 25 Sep 2014 09:45:11 +0000 (11:45 +0200)
committerArtur Wieczorek <artwik@wp.pl>
Thu, 25 Sep 2014 09:45:11 +0000 (11:45 +0200)
Applied in PR3243 to 2.4 branch.

modules/videoio/src/cap_msmf.cpp

index 2ef4ac2..2c7f0ea 100644 (file)
@@ -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 <mferror.h>