diff --git a/ChangeLog b/ChangeLog index 1311d4b8e7..9533986309 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +2008-06-26 Edward Hervey + + * gst/common.h: + * gst/gstmodule.c: + * gst/interfaces.override: + * gst/pbutils.override: + * gst/pygstiterator.c: + * gst/pygstminiobject.c: + * gst/pygstminiobject.h: + Fix double-import issues on macosx. + Fixes #461838 + 2008-06-26 Edward Hervey * gst/gstmodule.c: (pygstminiobject_from_gvalue): diff --git a/gst/common.h b/gst/common.h index a487b1add5..c2ffeb4800 100644 --- a/gst/common.h +++ b/gst/common.h @@ -28,7 +28,7 @@ #include #include -#include "pygobject.h" +#include #include "pygstminiobject.h" #if (defined HAVE_OLD_PYGTK && (PY_VERSION_HEX < 0x02030000)) diff --git a/gst/gstmodule.c b/gst/gstmodule.c index 4c6d483d6b..49d2f79024 100644 --- a/gst/gstmodule.c +++ b/gst/gstmodule.c @@ -24,15 +24,15 @@ #include "config.h" #endif -#include "pygstminiobject.h" -#include "pygstexception.h" - -#include - /* include this first, before NO_IMPORT_PYGOBJECT is defined */ #include #include #include +#include "common.h" +#include "pygstexception.h" + +#include + void pygst_register_classes (PyObject *d); void pygst_add_constants(PyObject *module, const gchar *strip_prefix); diff --git a/gst/interfaces.override b/gst/interfaces.override index 67ef6e8321..a28952ac14 100644 --- a/gst/interfaces.override +++ b/gst/interfaces.override @@ -25,6 +25,8 @@ headers # include #endif +#define NO_IMPORT_PYGOBJECT + #include "common.h" #include diff --git a/gst/pbutils.override b/gst/pbutils.override index 15b8bc0baa..8e42685e9c 100644 --- a/gst/pbutils.override +++ b/gst/pbutils.override @@ -24,6 +24,7 @@ headers # include #endif +#define NO_IMPORT_PYGOBJECT #include "common.h" #include diff --git a/gst/pygstiterator.c b/gst/pygstiterator.c index 2dc987cbc5..7d555f605a 100644 --- a/gst/pygstiterator.c +++ b/gst/pygstiterator.c @@ -19,6 +19,9 @@ * * Author: Johan Dahlin */ +/* define this for all source files that don't run init_pygobject() + * before including pygobject.h */ +#define NO_IMPORT_PYGOBJECT #include "common.h" diff --git a/gst/pygstminiobject.c b/gst/pygstminiobject.c index 1f0ae2ac27..dcd4ded444 100644 --- a/gst/pygstminiobject.c +++ b/gst/pygstminiobject.c @@ -20,6 +20,7 @@ * USA */ +#define NO_IMPORT_PYGOBJECT #include "pygstminiobject.h" #include diff --git a/gst/pygstminiobject.h b/gst/pygstminiobject.h index c1c5bd9214..85516035fa 100644 --- a/gst/pygstminiobject.h +++ b/gst/pygstminiobject.h @@ -45,7 +45,6 @@ pygst_miniobject_init(); #ifndef _INSIDE_PYGSTMINIOBJECT_ -struct _PyGObject_Functions *_PyGObject_API; extern PyTypeObject PyGstMiniObject_Type;