Description
Hi,
Qt/src/corelib/global/qglobal.cpp fails to compile under Cygwin:
QSysInfo::WinVersion QSysInfo::windowsVersion()
{
// snip
OSVERSIONINFOW osver;
osver.dwOSVersionInfoSize = sizeof(osver);
GetVersionEx(&osver);
This fails because it is passing a wide character variant of the version structure to a normal GetVersionEx(), which can either be wide character or ANSI. Instead it should either use OSVERSIONINFO or GetVersionExW() to avoid mixing. Possibly you could also #define UNICODE, but that seems like a hacky solution.
Also see the documentation here: http://msdn.microsoft.com/en-us/library/ms724451%28VS.85%29.aspx, and the definitions in winbase.h and winnt.h.
Thanks,
Benbuck