On 8/22/2011 09:26, Sam Steingold wrote:
>> * Kai Tietz <xgvrgm70-tZ/lr1r23zja+odd9eo...@choyvp.tznar.bet> [2011-08-20 
>> 09:31:47 +0200]:
>> 2011/8/20 JonY <jon_y-rn4veauk+akrv+lv9mx5uipxlwaov...@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.
> 
> 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.
> 
> 

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.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to