diff options
author | Jonathan Liu <net147@gmail.com> | 2012-02-07 19:25:51 +1100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-08 03:13:32 +0100 |
commit | 029bad8b5a3aef6a9ad86bf18e83bdad8ce9ffd2 (patch) | |
tree | 443bbcb43a4df648a195b1e0c10f25f33d5f67f9 /src/corelib/tools/qsimd_p.h | |
parent | a313db2c81c904e9cdb7099d0ebd0a906b887637 (diff) |
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>
Diffstat (limited to 'src/corelib/tools/qsimd_p.h')
-rw-r--r-- | src/corelib/tools/qsimd_p.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/tools/qsimd_p.h b/src/corelib/tools/qsimd_p.h index 47c4a9952b..44428b7284 100644 --- a/src/corelib/tools/qsimd_p.h +++ b/src/corelib/tools/qsimd_p.h @@ -62,6 +62,10 @@ QT_BEGIN_HEADER #undef QT_HAVE_MMX #endif +#ifdef __MINGW64_VERSION_MAJOR +#include <intrin.h> +#endif + // SSE intrinsics #if defined(QT_HAVE_SSE2) && (defined(__SSE2__) || defined(Q_CC_MSVC)) #if defined(QT_LINUXBASE) |