mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
acd9c12667
Visual Studio does not allow decorating functions with '__declspec (dllexport)' if a prototype exists and is not decorated with '__declspec (dllexport)' as well, so we cannot just decorate g_io_module_[load|unload|query] in the various module sources with G_MODULE_EXPORT because the prototypes of these functions have been marked with _GLIB_EXTERN, which equates to 'extern' unless overridden Fix this by overriding _GLIB_EXTERN with the appropriate visibility flag, as we have used to define _GDK_EXTERN. Unfortunately, we can't just use _GDK_EXTERN G_MODULE_EXPORT as they may have not been defined yet for our use Do this across the board for all modules, even if they are not buildable on Visual Studio nor Windows, for consistency's sake. |
||
---|---|---|
.. | ||
gtkffmediafile.c | ||
gtkffmediafileprivate.h | ||
gtkgstmediafile.c | ||
gtkgstmediafileprivate.h | ||
gtkgstpaintable.c | ||
gtkgstpaintableprivate.h | ||
gtkgstsink.c | ||
gtkgstsinkprivate.h | ||
meson.build |