summaryrefslogtreecommitdiffstats
path: root/gobject/pygobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'gobject/pygobject.h')
-rw-r--r--gobject/pygobject.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gobject/pygobject.h b/gobject/pygobject.h
index c9cebfe..43ea664 100644
--- a/gobject/pygobject.h
+++ b/gobject/pygobject.h
@@ -7,6 +7,12 @@
#include <glib.h>
#include <glib-object.h>
+#ifdef DISABLE_THREADING
+# define PyGILState_STATE int
+# define PyGILState_Ensure() (0)
+# define PyGILState_Release(x)
+#endif
+
typedef struct {
PyObject_HEAD
GObject *obj;