gstconfig.h: Always use dllexport/import on Windows
authorNirbheek Chauhan <nirbheek@centricular.com>
Thu, 19 May 2016 18:54:54 +0000 (00:24 +0530)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 23 May 2016 11:13:53 +0000 (12:13 +0100)
commit161eee669450014d57e21b9908b9ebcbcb0055e8
tree80e04bbc5aad75905789f7bef7c5d289e2962e79
parent603b8188bb32fc7ef296615f2322467bca382a9a
gstconfig.h: Always use dllexport/import on Windows

__declspec(dllexport/import) are supported by GCC and are needed for
properly generating code that fetches the values of constants from DLLs
built with __declspec(dllexport) which happens when anything using
GST_EXPORT is built with MSVC.

See: https://msdn.microsoft.com/en-us/library/619w14ds.aspx

Essentially, if you built gstreamer with MSVC and then tried to use
constants from it (such as GST_TYPE_CAPS) in a plugin, GCC would
retrieve the address of the value instead of the value itself.
gst/gstconfig.h.in