X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0	tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_VR,TW_XG
X-Spam-Check-By: sourceware.org
Message-ID: <4E5229ED.9050805@users.sourceforge.net>
Date: Mon, 22 Aug 2011 18:05:33 +0800
From: JonY <jon_y@users.sourceforge.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.0
MIME-Version: 1.0
To: cygwin@cygwin.com,
        "mingw-w64-public@lists.sourceforge.net" <mingw-w64-public@lists.sourceforge.net>
Subject: Re: i686-w64-mingw32-gcc & ntifs.h
References: <svliuq67y2.fsf@smsv2-L.wtc.algo>	<4E4D9487.4080103@users.sourceforge.net>	<sv39gy47h5.fsf@smsv2-L.wtc.algo>	<4E4E38B9.9010803@users.sourceforge.net>	<20110819120044.GA2506@calimero.vinschen.de>	<svr54h2ql5.fsf@smsv2-L.wtc.algo>	<4E4F08D3.3060007@users.sourceforge.net>	<CAEwic4YRYiOPP+6AQH_UrnO0pTpc6xYTZrV4bC-esAACXxCOaQ@mail.gmail.com> <87fwkunsna.fsf@gnu.org>
In-Reply-To: <87fwkunsna.fsf@gnu.org>
Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig43012CAB9D2951A2C5CB5800"
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

--------------enig43012CAB9D2951A2C5CB5800
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 8/22/2011 09:26, Sam Steingold wrote:
>> * Kai Tietz <xgvrgm70-tZ/Lr1R23zjA+OdD9eORHt@choyvp.tznar.bet> [2011-08-=
20 09:31:47 +0200]:
>> 2011/8/20 JonY <jon_y-Rn4VEauK+AKRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>:
>>>> /usr/i686-w64-mingw32/sys-root/mingw/include/ddk/ntddk.h:2922:26:
>>>> error: redeclaration of enumerator `WinRestrictedCodeSid'
>>>> /usr/i686-w64-mingw32/sys-root/mingw/include/winnt.h:2681:413: note:
>>>> previous definition of `WinRestrictedCodeSid' was here
>>>>
>>>> what about those?
>>>>
>>>
>>> afaik, you aren't supposed to use use winnt.h and ntddk code together,
>>> but I'm not sure this is accidental, I'll try to the devs and see if
>>> they have something.
>>>
>>
>> winnt.h is platform header part.  For DDK you should use AFAIR ntdef.h
>> and/or wdm.h instead.
>=20
> somehow my users who use mingw with msys can include winnt.h and
> ntddk/ntifs.h while I (who uses cygwin with i686-w64-mingw32-gcc)
> cannot.
>=20
>=20

This is one of the difference between mingw.org and mingw-w64, the
latter follows MSVC more closely.

The ddk headers themselves are mostly from ReactOS (which also follows
MSVC closely), so its not easy to change its behavior to follow mingw.org.


--------------enig43012CAB9D2951A2C5CB5800
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)

iEYEARECAAYFAk5SKfAACgkQp56AKe10wHc3YQCdGkmMbB+cFdMfK9O1wvMuP25W
mwIAn0+5G06FuOn7oSLTpNAIFvI+cQNy
=/fd2
-----END PGP SIGNATURE-----

--------------enig43012CAB9D2951A2C5CB5800--
