Fixed directshow config test
authorGareth Stockwell <ext-gareth.stockwell@nokia.com>
Mon, 1 Aug 2011 10:17:29 +0000 (11:17 +0100)
committerQt by Nokia <qt-info@nokia.com>
Mon, 26 Sep 2011 05:21:50 +0000 (07:21 +0200)
In some versions of Microsoft Windows SDK v6.0A, the qedit.h header is
present, but dxtrans.h (which is #included by qedit.h) is missing.

The standard workaround for this issue is already used by
plugins/multimedia/directshow/camera/dscamerasession.h; this commit adds
the same workaround to the config test.

Reviewed-by: Michael Goddard
Reviewed-by: Ling Hu
(cherry picked from commit e3c07dc9dd6a9f7930ca3c61cfd667d816731ce1)

Change-Id: Ia53c4f6b3efc86e2447a39e6d95e7f67d7e46b5d
Reviewed-on: http://codereview.qt-project.org/5498
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
config.tests/directshow/main.cpp

index 972a57c..3ebd7ac 100644 (file)
 #include <dshow.h>
 #include <d3d9.h>
 #include <vmr9.h>
+
+#pragma include_alias("dxtrans.h","qedit.h")
+#define __IDxtCompositor_INTERFACE_DEFINED__
+#define __IDxtAlphaSetter_INTERFACE_DEFINED__
+#define __IDxtJpeg_INTERFACE_DEFINED__
+#define __IDxtKey_INTERFACE_DEFINED__
 #include <qedit.h>
 
 int main(int, char**)