mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
configure.ac: define HAVE_OLD_PYGTK if we're on pygtk 2.3.91 or earlier.
Original commit message from CVS: * configure.ac: define HAVE_OLD_PYGTK if we're on pygtk 2.3.91 or earlier. * gst/common.h: Add backwards compatible typedef for python < 2.3 and pygtk < 2.3.92
This commit is contained in:
parent
1737a9736c
commit
338d44b674
3 changed files with 15 additions and 0 deletions
|
@ -1,5 +1,10 @@
|
|||
2004-05-03 Johan Dahlin <johan@gnome.org>
|
||||
|
||||
* configure.ac: define HAVE_OLD_PYGTK if we're on pygtk 2.3.91 or earlier.
|
||||
|
||||
* gst/common.h: Add backwards compatible typedef for python < 2.3
|
||||
and pygtk < 2.3.92
|
||||
|
||||
* codegen/codegen.py: Resync (add support for tp_as_buffer)
|
||||
|
||||
* gst/gst.override: Support buffer interface for GstBuffer. Move
|
||||
|
|
|
@ -60,6 +60,12 @@ dnl check for pygtk
|
|||
PKG_CHECK_MODULES(PYGTK, pygtk-2.0 >= $PYGTK_REQ)
|
||||
AC_SUBST(PYGTK_CFLAGS)
|
||||
|
||||
PKG_CHECK_MODULES(PYGTK, pygtk-2.0 >= 2.3.92, ,HAVE_OLD_PYGTK="yes")
|
||||
AC_SUBST(PYGTK_CFLAGS)
|
||||
if test "x$HAVE_OLD_PYGTK" = "xyes"; then
|
||||
AC_DEFINE_UNQUOTED(HAVE_OLD_PYGTK, 1, [Defined if we have an old version of PyGTK])
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING(for pygtk defs)
|
||||
PYGTK_DEFSDIR=`$PKG_CONFIG --variable=defsdir pygtk-2.0`
|
||||
AC_SUBST(PYGTK_DEFSDIR)
|
||||
|
|
|
@ -26,6 +26,10 @@
|
|||
|
||||
#include "pygobject.h"
|
||||
|
||||
#if defined HAVE_OLD_PYGTK && PY_VERSION_HEX < 0x02030000
|
||||
typedef destructor freefunc;
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
PyGObject *pad;
|
||||
PyObject *link_function;
|
||||
|
|
Loading…
Reference in a new issue