summaryrefslogtreecommitdiff
path: root/giscanner/giscannermodule.c
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2011-09-03 12:49:22 +0200
committerColin Walters <walters@verbum.org>2011-09-03 14:40:10 -0400
commit0f081d7bda792548348b330f4a99ef3788709ea6 (patch)
treeef794149a5a60ee22e0c71e53670bfec44c86c44 /giscanner/giscannermodule.c
parentfa4a01bd5f4ad59fe0a646e3111a8d38ac9f047b (diff)
downloadgobject-introspection-0f081d7bda792548348b330f4a99ef3788709ea6.tar.gz
Fix compilation with mingw
grealpath.h defines GetFullPathNameA() as windows.h is not imported, but for gitscanner.c, windows.h is imported and the compiler throws an error.
Diffstat (limited to 'giscanner/giscannermodule.c')
-rw-r--r--giscanner/giscannermodule.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/giscanner/giscannermodule.c b/giscanner/giscannermodule.c
index b7cfd6ec..86fa2449 100644
--- a/giscanner/giscannermodule.c
+++ b/giscanner/giscannermodule.c
@@ -24,6 +24,10 @@
#endif
#include <Python.h>
#include "sourcescanner.h"
+
+#ifdef G_OS_WIN32
+#define USE_WINDOWS
+#endif
#include "grealpath.h"
#ifdef _WIN32