made C++ friendly
authorErik Walthinsen <omega@temple-baptist.org>
Sat, 20 Oct 2001 23:12:36 +0000 (23:12 +0000)
committerErik Walthinsen <omega@temple-baptist.org>
Sat, 20 Oct 2001 23:12:36 +0000 (23:12 +0000)
Original commit message from CVS:
made C++ friendly

gst/gstparse.h

index 9374d25..fda38ae 100644 (file)
 #ifndef __GST_PARSE_H__
 #define __GST_PARSE_H__
 
-#ifndef GST_DISABLE_PARSE
-
 #include <gst/gstbin.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+#ifndef GST_DISABLE_PARSE
+
 gint   gst_parse_launch        (const gchar *cmdline, GstBin *parent);
 
 #else // GST_DISABLE_PARSE
@@ -35,4 +39,8 @@ gint  gst_parse_launch        (const gchar *cmdline, GstBin *parent);
 
 #endif // GST_DISABLE_PARSE
 
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
 #endif /* __GST_PARSE_H__ */