diff options
Diffstat (limited to 'gobject/pygobject.h')
-rw-r--r-- | gobject/pygobject.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gobject/pygobject.h b/gobject/pygobject.h index d6c681c..e65611d 100644 --- a/gobject/pygobject.h +++ b/gobject/pygobject.h @@ -7,6 +7,10 @@ #include <glib.h> #include <glib-object.h> +#if PY_VERSION_HEX < 0x02030000 + typedef destructor freefunc; +#endif + typedef struct { PyObject_HEAD GObject *obj; |