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



commit 248ed96d5b62022daa6cb84845d458df5c379f40
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 bb24f54..c914d71 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]