From 3952e19c2a9d2fc09a7567c625f5e77b730b0856 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Cerveau?= Date: Mon, 15 Feb 2021 09:54:51 +0100 Subject: [PATCH] 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: --- gst/gstelement.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/gst/gstelement.h b/gst/gstelement.h index 0eee77fda7..3a306ccca5 100644 --- a/gst/gstelement.h +++ b/gst/gstelement.h @@ -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 /**