Fix compilation with MinGW
authorJonathan Liu <net147@gmail.com>
Tue, 14 Feb 2012 12:27:32 +0000 (23:27 +1100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 15 Feb 2012 07:59:29 +0000 (08:59 +0100)
commit9c23257fe4ea4778433909e28a5af9895fdb7e24
tree0c69cb4e2333b7a2c78e8f1e4101481fddd3ce5f
parent3296b7327bd84f420df7e5561d192c0a8d0bb409
Fix compilation with MinGW

Some headers and constants are available in MinGW-w64 that are not
available in the official MinGW. STATE_SYSTEM_HASPOPUP and
STATE_SYSTEM_PROTECTED constants are defined if they are not already
defined by including oleacc.h. _CrtSetReportMode is not used and
crtdbg.h is not included when using official MinGW as crtdbg.h is
missing from official MinGW.

Change-Id: Ie7f3f3726a1663d0fdeb6ee17b86873ae3f61860
Reviewed-by: Jonathan Liu <net147@gmail.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
src/plugins/platforms/windows/qtwindows_additional.h
src/plugins/platforms/windows/qwindowsaccessibility.cpp
src/testlib/qtestcase.cpp