summaryrefslogtreecommitdiffstats
path: root/gobject/pygobject.h
diff options
context:
space:
mode:
authorJohan Dahlin <johan@src.gnome.org>2004-08-03 18:38:14 +0000
committerJohan Dahlin <johan@src.gnome.org>2004-08-03 18:38:14 +0000
commitbed044f5d6f69b376e45ac388322e9bf7484ae7e (patch)
tree078d36b1281ac60aed5746ea4b9086e26919df6a /gobject/pygobject.h
parent9409df14dfa596a87cf010cceeb9d96ace559527 (diff)
downloadpygobject-bed044f5d6f69b376e45ac388322e9bf7484ae7e.tar.gz
pygobject-bed044f5d6f69b376e45ac388322e9bf7484ae7e.tar.xz
pygobject-bed044f5d6f69b376e45ac388322e9bf7484ae7e.zip
Urgh. more threading 'fixes'
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;