delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,T_TO_NO_BRKTS_FREEMAIL |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
Date: | Thu, 6 Jan 2011 15:20:26 -0800 |
Message-ID: | <AANLkTi=SOo7Ko2d96Vv=oKswX3BJaqGQiS6-oL8fmodA@mail.gmail.com> |
Subject: | Mingw headers broken with _WIN32_WINNT = 0x601 (Win7) |
From: | Daniel Colascione <dan DOT colascione AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
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 =91...=92 before =91cCriteria=92 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 =91=3D=92, =91,=92, =91;=92, =91asm=92 or =91__attribute__= =92 before =91CoGetApartmentType=92 It works fine with _WIN32_WINNT =3D 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |