[pygobject] Add defines for size_t and ssize_t conversion functions



commit 3cefffecc1317b6ad77a5ed936bfb990d16bf9d3
Author: Gustavo Noronha Silva <gustavo noronha collabora co uk>
Date:   Thu Aug 19 18:45:05 2010 -0300

    Add defines for size_t and ssize_t conversion functions
    
    These missing defines cause the resulting module to have unresolved
    symbols, rendering it unusable.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=627440

 glib/pyglib-python-compat.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/glib/pyglib-python-compat.h b/glib/pyglib-python-compat.h
index 8fc28e4..c695973 100644
--- a/glib/pyglib-python-compat.h
+++ b/glib/pyglib-python-compat.h
@@ -103,6 +103,8 @@ static int _pyglib_init_##modname(PyObject *module)
 
 #define PYGLIB_PyLong_Check PyInt_Check
 #define PYGLIB_PyLong_FromLong PyInt_FromLong
+#define PYGLIB_PyLong_FromSsize_t PyInt_FromSsize_t
+#define PYGLIB_PyLong_FromSize_t PyInt_FromSize_t
 #define PYGLIB_PyLong_AsLong  PyInt_AsLong
 #define PYGLIB_PyLongObject PyIntObject
 #define PYGLIB_PyLong_Type PyInt_Type



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]