[glib/glib-2-46] gwin32.c: Fix build on MinGW and earlier MSVC



commit 7e9c7a1753fed4dcf53ed512bd6ea4cc166abad5
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Sat Oct 24 11:14:06 2015 +0800

    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.

 glib/gwin32.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/glib/gwin32.c b/glib/gwin32.c
index 7781c04..ce462bb 100644
--- a/glib/gwin32.c
+++ b/glib/gwin32.c
@@ -59,6 +59,8 @@
 #ifdef _MSC_VER
 #pragma comment (lib, "ntoskrnl.lib")
 #endif
+#else
+#include <winternl.h>
 #endif
 
 #include "glib.h"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]