mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
features: remove extra G_BEGIN_DECLS/G_END_DECLS
_GST_ELEMENT_REGISTER_DEFINE_BEGIN _GST_ELEMENT_REGISTER_DEFINE_END was introducing an extra extern "C" in case of c++ build. Add missing ";" in GST_ELEMENT_REGISTER_DECLARE Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/757>
This commit is contained in:
parent
c53ea138c6
commit
3952e19c2a
1 changed files with 2 additions and 5 deletions
|
@ -28,7 +28,6 @@
|
|||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
|
||||
/**
|
||||
* _GST_ELEMENT_REGISTER_DEFINE_BEGIN: (attributes doc.skip=true)
|
||||
*/
|
||||
|
@ -37,14 +36,12 @@ G_BEGIN_DECLS \
|
|||
gboolean G_PASTE (gst_element_register_, element) (GstPlugin * plugin) \
|
||||
{ \
|
||||
gboolean ret = FALSE; \
|
||||
{\
|
||||
G_END_DECLS
|
||||
{
|
||||
|
||||
/**
|
||||
* _GST_ELEMENT_REGISTER_DEFINE_END: (attributes doc.skip=true)
|
||||
*/
|
||||
#define _GST_ELEMENT_REGISTER_DEFINE_END(element_name, rank, type) \
|
||||
G_BEGIN_DECLS \
|
||||
} \
|
||||
ret |= gst_element_register (plugin, element_name, rank, type); \
|
||||
return ret; \
|
||||
|
@ -143,7 +140,7 @@ G_END_DECLS
|
|||
*/
|
||||
#define GST_ELEMENT_REGISTER_DECLARE(element) \
|
||||
G_BEGIN_DECLS \
|
||||
gboolean G_PASTE(gst_element_register_, element) (GstPlugin * plugin) \
|
||||
gboolean G_PASTE(gst_element_register_, element) (GstPlugin * plugin); \
|
||||
G_END_DECLS
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue