Commit 7e144536 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Fixed MinGW compilation.

parent 3ba72d0e
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment