From 4dd33312feee6770621e7195a8ba94a6d7215be7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Wed, 9 Feb 2005 22:31:05 +0000 Subject: Add G_BEGIN_DECLS and G_END_DECLS around headers where missing, so that they work when included from C++ code Original commit message from CVS: Add G_BEGIN_DECLS and G_END_DECLS around headers where missing, so that they work when included from C++ code --- gst-libs/gst/video/video.h | 4 ++++ gst-libs/gst/video/videosink.h | 8 ++------ 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'gst-libs/gst/video') diff --git a/gst-libs/gst/video/video.h b/gst-libs/gst/video/video.h index 6875f636..97a2aacd 100644 --- a/gst-libs/gst/video/video.h +++ b/gst-libs/gst/video/video.h @@ -23,6 +23,8 @@ #include +G_BEGIN_DECLS + #define GST_VIDEO_BYTE1_MASK_32 "0xFF000000" #define GST_VIDEO_BYTE2_MASK_32 "0x00FF0000" #define GST_VIDEO_BYTE3_MASK_32 "0x0000FF00" @@ -187,4 +189,6 @@ gboolean gst_video_get_size (GstPad *pad, gint *width, gint *height); +G_END_DECLS + #endif /* __GST_VIDEO_H__ */ diff --git a/gst-libs/gst/video/videosink.h b/gst-libs/gst/video/videosink.h index d1e3aa97..bdf52e15 100644 --- a/gst-libs/gst/video/videosink.h +++ b/gst-libs/gst/video/videosink.h @@ -24,9 +24,7 @@ #include -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ +G_BEGIN_DECLS #define GST_TYPE_VIDEOSINK (gst_videosink_get_type()) #define GST_VIDEOSINK(obj) \ @@ -68,8 +66,6 @@ struct _GstVideoSinkClass { GType gst_videosink_get_type (void); -#ifdef __cplusplus -} -#endif /* __cplusplus */ +G_END_DECLS #endif /* __GST_VIDEOSINK_H__ */ -- cgit v1.2.1