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: Subject: Mingw headers broken with _WIN32_WINNT = 0x601 (Win7) From: Daniel Colascione To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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 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