mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23:13:40 +02:00
gwin32.c: Fix build on MinGW and earlier MSVC
MinGW and pre-2008 Visual Studio does not have NTSTATUS automatically defined from including the normal Windows headers, which broke the build on these toolsets. Fix this by including winternl.h, which will define NTSTATUS on these toolsets. This should fix bug 756875 for the glib-2-46 branch.
This commit is contained in:
@@ -59,6 +59,8 @@
|
||||
#ifdef _MSC_VER
|
||||
#pragma comment (lib, "ntoskrnl.lib")
|
||||
#endif
|
||||
#else
|
||||
#include <winternl.h>
|
||||
#endif
|
||||
|
||||
#include "glib.h"
|
||||
|
Reference in New Issue
Block a user