[Bug 797185] Fix API export/import decorators in general and "inconsistent DLL linkage" with MSVC on Windows

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Sep 21 10:24:42 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=797185

--- Comment #2 from Tim-Philipp Müller <t.i.m at zen.co.uk> ---
Created attachment 373720
  --> https://bugzilla.gnome.org/attachment.cgi?id=373720&action=edit
gstconfig.h: add GST_API_IMPORT define

This is for use by the various GST_*_API decorators and
will be what they get defined to when a library API is being
used by external users of that library (not the library itself
whilst it's being compiled).

In most cases it will simply map to a plain 'extern' but on
Windows with MSVC it will need to map to __declspec(dllimport).
For functions this is not strictly needed, but for exported
variables it is.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list