From 7e1445368eb30b65cec9315a8f26ccd5157892ad Mon Sep 17 00:00:00 2001 From: Friedemann Kleint <Friedemann.Kleint@nokia.com> Date: Fri, 22 May 2009 08:43:05 +0200 Subject: [PATCH] Fixed MinGW compilation. --- src/plugins/qt4projectmanager/qtversionmanager.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/qt4projectmanager/qtversionmanager.cpp b/src/plugins/qt4projectmanager/qtversionmanager.cpp index d6e20222e04..608e05b8a51 100644 --- a/src/plugins/qt4projectmanager/qtversionmanager.cpp +++ b/src/plugins/qt4projectmanager/qtversionmanager.cpp @@ -923,8 +923,11 @@ bool QtVersion::isMSVC64Bit() const qDebug() << make; bool isAmd64 = false; #ifdef Q_OS_WIN32 +# ifdef __GNUC__ // MinGW lacking some definitions/winbase.h +# define SCS_64BIT_BINARY 6 +# endif DWORD binaryType = 0; - bool success = GetBinaryTypeW(make.utf16(), &binaryType) != 0; + bool success = GetBinaryTypeW(reinterpret_cast<const TCHAR*>(make.utf16()), &binaryType) != 0; if (success && binaryType == SCS_64BIT_BINARY) isAmd64=true; // qDebug() << "isAmd64:" << isAmd64 << binaryType; -- GitLab