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:
Chun-wei Fan
2015-10-24 11:14:06 +08:00
parent 24366e1598
commit 7e9c7a1753

View File

@@ -59,6 +59,8 @@
#ifdef _MSC_VER
#pragma comment (lib, "ntoskrnl.lib")
#endif
#else
#include <winternl.h>
#endif
#include "glib.h"