This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Mingw headers broken with _WIN32_WINNT = 0x601 (Win7)


If we have this program

#define _WIN32_WINNT 0x601
#include <windows.h>

int main() {}


And try to compile it like so,

x86_64-w64-mingw32-gcc hello.c

The compile fails with

In file included from
/usr/x86_64-w64-mingw32/sys-root/mingw/include/windows.h:86:0,
                 from hello.c:2:
/usr/x86_64-w64-mingw32/sys-root/mingw/include/wincrypt.h:4880:3:
error: expected declaration specifiers or ‘...’ before ‘cCriteria’
In file included from
/usr/x86_64-w64-mingw32/sys-root/mingw/include/ole2.h:16:0,
                 from
/usr/x86_64-w64-mingw32/sys-root/mingw/include/windows.h:97,
                 from hello.c:2:
/usr/x86_64-w64-mingw32/sys-root/mingw/include/objbase.h:335:26:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
‘CoGetApartmentType’

It works fine with _WIN32_WINNT = 0x600 (Vista)

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]