summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2018-08-21 09:14:23 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2018-08-21 09:53:05 +0800
commit032eac543d7aa44dbc4af3f4fd94be1dc4a93caf (patch)
tree110b0ec6956b20b17c5b3e7a0987d5067da9bcb4
parent2c6b3b9a3593e9eeb5da0af54dfff3b0810dcea6 (diff)
downloadgobject-introspection-032eac543d7aa44dbc4af3f4fd94be1dc4a93caf.tar.gz
Revert "scanner: remove some unnecessary Windows includes"
We need those includes and defines as we need to revert the commit that revert the hacks on Windows, as they are still necessary in the cases where we are using a Python installation that is not linked to the CRT that the currently used compiler targets to, such as on Visual Studio 2012 and 2013, where no official Python release is linked to their respective CRTs. This reverts commit e36350e3fdcb18a21089256b63298d6e3a49212b.
-rw-r--r--giscanner/giscannermodule.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/giscanner/giscannermodule.c b/giscanner/giscannermodule.c
index a024f1a0..5fc2fd4d 100644
--- a/giscanner/giscannermodule.c
+++ b/giscanner/giscannermodule.c
@@ -24,7 +24,15 @@
#endif
#include <Python.h>
#include "sourcescanner.h"
-#include <stdio.h>
+
+#ifdef _WIN32
+#include <fcntl.h>
+#include <io.h>
+#define WIN32_LEAN_AND_MEAN
+#define STRICT
+#include <windows.h>
+#endif
+
#include <glib-object.h>
#ifndef Py_TYPE