Fix compilation issue with MinGW (disables the usage of strsafe.h).

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>
This commit is contained in:
Lukas Geyer
2012-07-24 13:12:45 +02:00
committed by Qt by Nokia
parent f495216fad
commit db4576fa02

View File

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