[glib] win32: Include ntdef.h for NTSTATUS



commit 975cb9108543fb5c8b1146f74350ef4c6f1cd888
Author: Sebastian Dröge <sebastian centricular com>
Date:   Tue Oct 20 17:36:33 2015 +0300

    win32: Include ntdef.h for NTSTATUS
    
    https://bugzilla.gnome.org/show_bug.cgi?id=756875

 glib/gwin32.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/glib/gwin32.c b/glib/gwin32.c
index 7781c04..a0cbd1d 100644
--- a/glib/gwin32.c
+++ b/glib/gwin32.c
@@ -51,6 +51,10 @@
 
 #define MODERN_API_FAMILY 2
 
+#if WINAPI_FAMILY != MODERN_API_FAMILY
+#  include <ntdef.h>
+#endif
+
 #if WINAPI_FAMILY == MODERN_API_FAMILY
 /* This is for modern UI Builds, where we can't use LoadLibraryW()/GetProcAddress() */
 /* ntddk.h is found in the WDK, and MinGW */


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