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]

Re: i686-w64-mingw32-gcc & ntifs.h


On 8/18/2011 23:44, Sam Steingold wrote:
> Hi,
> I cannot
> #include <ddk/ntifs.h>
> because /usr/i686-w64-mingw32/sys-root/mingw/include/ddk/ntifs.h contains
> #include <ntddk.h>
> and <ntddk.h> actually lives in ddk, i.e., it should be
> #include <ddk/ntddk.h>
> after I aplly these two patches:
> --- c:/gnu/cygwin/usr/i686-w64-mingw32/sys-root/mingw/include/ddk/ntddk.h.old	2011-08-10 09:06:18.001000000 -0400
> +++ c:/gnu/cygwin/usr/i686-w64-mingw32/sys-root/mingw/include/ddk/ntddk.h	2011-08-18 11:42:13.272375000 -0400
> @@ -35,11 +35,11 @@
>  #define NT_INCLUDED
>  #define _CTYPE_DISABLE_MACROS
>  
> -#include <wdm.h>
> +#include <ddk/wdm.h>
>  #include <excpt.h>
>  #include <ntdef.h>
>  #include <ntstatus.h>
> -#include <mce.h>
> +#include <ddk/mce.h>
>  #include <bugcodes.h>
>  #include <ntiologc.h>
>  
> 
> Diff finished.  Thu Aug 18 11:42:16 2011
> --- c:/gnu/cygwin/usr/i686-w64-mingw32/sys-root/mingw/include/ddk/ntifs.h.old	2011-08-10 09:06:19.001000000 -0400
> +++ c:/gnu/cygwin/usr/i686-w64-mingw32/sys-root/mingw/include/ddk/ntifs.h	2011-08-18 11:33:42.429125000 -0400
> @@ -31,7 +31,7 @@ extern "C" {
>  #endif
>  
>  /* Dependencies */
> -#include <ntddk.h>
> +#include <ddk/ntddk.h>
>  #include <excpt.h>
>  #include <ntdef.h>
>  #include <ntnls.h>
> 
> Diff finished.  Thu Aug 18 11:36:04 2011

Adding to mingw-w64-public list.

You are supposed to use -I to add the ddk path to gcc.

Attachment: signature.asc
Description: OpenPGP digital signature


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