From: Nirbheek Chauhan Date: Thu, 23 Jun 2016 23:56:09 +0000 (+0530) Subject: gstconfig.h: Don't use extern with dllexport X-Git-Tag: 1.10.4~203 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=54fa564e012aa2f5aeac7fce9a6df0f592724eb3;p=platform%2Fupstream%2Fgstreamer.git gstconfig.h: Don't use extern with dllexport GCC emits an error for this with -Werror: plugin.c:22:1: error: 'gst_plugin_desc' initialized and declared 'extern' [-Werror] This matches how glib does symbol exporting. https://bugzilla.gnome.org/show_bug.cgi?id=767463 --- diff --git a/gst/gstconfig.h.in b/gst/gstconfig.h.in index 8a951fb..b30ba8e 100644 --- a/gst/gstconfig.h.in +++ b/gst/gstconfig.h.in @@ -140,9 +140,9 @@ * for the symbol inside a DLL */ #if defined(_WIN32) && !defined(GST_STATIC_COMPILATION) -# define GST_PLUGIN_EXPORT __declspec(dllexport) extern +# define GST_PLUGIN_EXPORT __declspec(dllexport) # ifdef GST_EXPORTS -# define GST_EXPORT __declspec(dllexport) extern +# define GST_EXPORT __declspec(dllexport) # else # define GST_EXPORT __declspec(dllimport) extern # endif