mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
gstplugin: Add C++ escape for gst_plugin_desc define
In order to properly export the gst_plugin_desc symbol from DLLs in MSVC, it needs to be extern "C".
This commit is contained in:
parent
c8c893c30e
commit
7537505ed0
1 changed files with 3 additions and 1 deletions
|
@ -227,6 +227,7 @@ struct _GstPluginClass {
|
|||
* The macro uses a define named PACKAGE for the #GstPluginDesc,source field.
|
||||
*/
|
||||
#define GST_PLUGIN_DEFINE(major,minor,name,description,init,version,license,package,origin) \
|
||||
G_BEGIN_DECLS \
|
||||
GST_PLUGIN_EXPORT GstPluginDesc gst_plugin_desc = { \
|
||||
major, \
|
||||
minor, \
|
||||
|
@ -239,7 +240,8 @@ GST_PLUGIN_EXPORT GstPluginDesc gst_plugin_desc = { \
|
|||
package, \
|
||||
origin, \
|
||||
GST_PADDING_INIT \
|
||||
};
|
||||
}; \
|
||||
G_END_DECLS
|
||||
|
||||
/**
|
||||
* GST_PLUGIN_DEFINE_STATIC:
|
||||
|
|
Loading…
Reference in a new issue