From 032eac543d7aa44dbc4af3f4fd94be1dc4a93caf Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Tue, 21 Aug 2018 09:14:23 +0800 Subject: 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. --- giscanner/giscannermodule.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'giscanner') 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 #include "sourcescanner.h" -#include + +#ifdef _WIN32 +#include +#include +#define WIN32_LEAN_AND_MEAN +#define STRICT +#include +#endif + #include #ifndef Py_TYPE -- cgit v1.2.1