gstconfig: Use __declspec when built with MinGW and linking with MSVC
authorNirbheek Chauhan <nirbheek@centricular.com>
Thu, 8 Sep 2016 07:28:54 +0000 (12:58 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Tue, 13 Sep 2016 08:16:19 +0000 (13:46 +0530)
commitb6e69ffdfb3bb21dbada8f01b488ae877f8d205c
treebbd9caccda6ae786bf63741ecf67c99f14855648
parentc7e0299d2420154513403519a3f8fea59a276028
gstconfig: Use __declspec when built with MinGW and linking with MSVC

Earlier we were only using __declspec(dllexport/import) when we were
built with MSVC because when built with MinGW and linking with MinGW we
don't need it (and we get linker errors because of it).

However, when we're built with MinGW and someone wants to link to us
with MSVC, we still need the prototypes to have __declspec(dllimport)
since MSVC cannot do auto-import like GCC can.

https://bugzilla.gnome.org/show_bug.cgi?id=771029
configure.ac
gst/gstconfig.h.in
meson.build