Fix compilation issue with MinGW (disables the usage of strsafe.h).
authorLukas Geyer <lgeyer@gmx.at>
Tue, 24 Jul 2012 11:12:45 +0000 (13:12 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 25 Jul 2012 01:27:14 +0000 (03:27 +0200)
Recent versions of MinGW include strsafe.h in dshow.h.
strsafe.h undefines all non-safe string functions, including
vsprintf and others, to prevent their usage. This causes
QString and others to fail. Defining NO_DSHOW_STRSAFE before
including dshow.h prevents this behaviour.

Change-Id: I012fecbabc5c11900486c1dfdc970a00613ef6f7
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
src/plugins/directshow/directshow.pro

index 6147647..fe00883 100644 (file)
@@ -17,6 +17,10 @@ SOURCES += dsserviceplugin.cpp
     DEFINES += HAVE_WIDGETS
 }
 
+win32-g++ {
+    DEFINES += NO_DSHOW_STRSAFE
+}
+
 !config_wmf: include(player/player.pri)
 include(camera/camera.pri)