GNOME Bugzilla – Bug 756875
Include ntdef.h for NTSTATUS
Last modified: 2016-01-05 09:51:54 UTC
Fixes compilation on Windows and is independent from the other patches.
Created attachment 313755 [details] [review] Include ntdef.h for NTSTATUS
*** Bug 756874 has been marked as a duplicate of this bug. ***
Review of attachment 313755 [details] [review]: Looks good.
Hi, For records, I have further fixed the build of gwin32.c by including winternl.h, as ntdef.h is normally shipped with MinGW, not Visual Studio[1]. Please let me know if including winternl.h does not work for you (I have checked in the mingw-w64 headers and the winternl.h there does include NTSATUS). [1]: master: 556705c glib-2-46: 7e9c7a1 glib-2-44: 248ed96 With blessings.
Makes sense, winternl.h exists with mingw too and also typedefs NTSTATUS. Thanks!
Created attachment 314261 [details] [review] winternl.h doesn't exist on mingw32 For me, winternl.h doesn't exist on mingw32 so I need this patch to compile.
Fan, did you see Cédric's comment?
Hello Sebastian, I have pushed a patch that is based on Cédric's on master, glib-2-46 and glib-2-44, which should deal with the issue. Sorry for the delay. With blessings, Happy New Year!
While this specific patch is trivial and it is ok to have, I think we should really drop support for mingw32, it is a dead project and has been superseded by mingw64 in every aspect. I think we should error out in configure and just point people to mingw64