mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-02 15:46:17 +01:00
gwin32.c: Fix build on MinGW
Apparently unlike mingw-w64 and Visual Studio, MinGW does not come with winternl.h, which defines NTSTATUS, so we need to include ntdef.h instead on MinGW for NTSTATUS. Based on patch by Cédric Krier. https://bugzilla.gnome.org/show_bug.cgi?id=756875
This commit is contained in:
parent
0309d645ad
commit
786b4c8b87
@ -59,6 +59,9 @@
|
||||
#ifdef _MSC_VER
|
||||
#pragma comment (lib, "ntoskrnl.lib")
|
||||
#endif
|
||||
#elif defined (__MINGW32__)
|
||||
/* mingw-w64, not MinGW, has winternl.h */
|
||||
#include <ntdef.h>
|
||||
#else
|
||||
#include <winternl.h>
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user