[gst-devel] c++ patch

Matt Howell matth at ridgerun.com
Tue Mar 6 23:05:37 CET 2001


attached is a patch to allow c++ (post egcs compilers) to include gst/gstpad.h

i'll check this into cvs, too.

matt.

Index: gst/gstpad.h
===================================================================
RCS file: /cvsroot/gstreamer/gstreamer/gst/gstpad.h,v
retrieving revision 1.44
diff -u -r1.44 gstpad.h
--- gst/gstpad.h 2001/02/22 23:18:51 1.44
+++ gst/gstpad.h 2001/03/01 22:16:01
@@ -237,7 +237,11 @@

 /* factory */
 typedef gpointer GstPadFactoryEntry;
+#ifdef __cplusplus
+typedef GstPadFactoryEntry *GstPadFactory;
+#else // C++ was unable to compile with this
 typedef GstPadFactoryEntry GstPadFactory[];
+#endif

 #define GST_PAD_FACTORY_ALWAYS  GINT_TO_POINTER(GST_PAD_ALWAYS)
 #define GST_PAD_FACTORY_SOMETIMES GINT_TO_POINTER(GST_PAD_SOMETIMES)






More information about the gstreamer-devel mailing list