summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--giscanner/dumper.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/giscanner/dumper.py b/giscanner/dumper.py
index 22afd61e..74a494b8 100644
--- a/giscanner/dumper.py
+++ b/giscanner/dumper.py
@@ -34,6 +34,10 @@ from .ccompiler import CCompiler
# we want to introspect, in order to call its get_type functions.
_PROGRAM_TEMPLATE = """/* This file is generated, do not edit */
+
+#undef GLIB_VERSION_MIN_REQUIRED
+#undef GLIB_VERSION_MAX_ALLOWED
+
#include <glib.h>
#include <string.h>
#include <stdlib.h>