Fix compilation with MinGW-w64
authorJonathan Liu <net147@gmail.com>
Tue, 7 Feb 2012 08:25:51 +0000 (19:25 +1100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 8 Feb 2012 02:13:32 +0000 (03:13 +0100)
commit029bad8b5a3aef6a9ad86bf18e83bdad8ce9ffd2
tree443bbcb43a4df648a195b1e0c10f25f33d5f67f9
parenta313db2c81c904e9cdb7099d0ebd0a906b887637
Fix compilation with MinGW-w64

Fix compilation with MinGW-w64 with the following changes:
- Include intrin.h to fix __cpuid not declared error
- Include intrin.h before *mmintrin.h headers to avoid extern linkable
  mismatch
- Use quintptr instead of unsigned long to handle LLP64
- Do not declare winuser.h structs already provided with MinGW-w64
- Work around IID_IShellItem being declared but not defined with
  MinGW-w64
- Remove incorrect use of SUCCEEDED macro on pointer

Change-Id: Ia21f8e3a1d225cf501e646eacd968bfc744ce0a2
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
src/corelib/tools/qsimd.cpp
src/corelib/tools/qsimd_p.h
src/plugins/platforms/minimal/qminimalbackingstore.cpp
src/plugins/platforms/windows/qtwindows_additional.h
src/plugins/platforms/windows/qwindowsdialoghelpers.cpp