gtk2/modules/media
Chun-wei Fan 432e8664e1 modules/media: Fix Visual Studio builds with older GLib
The current definitions of the g_io_module_*() symbols do not build on
Visual Studio when building against GLib earlier than 2.75.0 due to the
way how these symbols are decorated in the GLib headers, as Visual Studio
does not allow symbols that were previously marked with 'extern' (or so)
to be marked with anything that is symantically different later.

As a result, if we are using Visual Studio and glib-2.74.x or earlier,
override _GLIB_EXTERN as appropriate in the modules/media sources before
including the GIO headers.  This sadly, means that we need a
configure-time check as it would have been too late if we checked the
GLib version using G_VERSION_CHECK macro, as the GIO headers would have
been included already.

There are similar items in the print backends, but we will not attempt
to update these files as they are not meant to be built for Windows.
2023-03-07 15:36:42 +08:00
..
gtkffmediafile.c modules/media: Fix Visual Studio builds with older GLib 2023-03-07 15:36:42 +08:00
gtkffmediafileprivate.h gtk: Add ffmpeg implementation of GtkMediaFile 2018-03-18 21:01:23 +01:00
gtkgstmediafile.c modules/media: Fix Visual Studio builds with older GLib 2023-03-07 15:36:42 +08:00
gtkgstmediafileprivate.h gtk: Add a GStreamer implementation of GtkMediaFile 2018-03-18 21:01:23 +01:00
gtkgstpaintable.c gtkgstpaintable: Handle a NULL value 2022-02-16 10:02:24 +01:00
gtkgstpaintableprivate.h media: Add support for OpenGL to GtkGstMediaFile 2021-01-04 15:00:36 -05:00
gtkgstsink.c gstreamer: Fix gl context use 2023-02-12 19:29:04 -05:00
gtkgstsinkprivate.h gst: Rename a field for clarity 2023-01-30 15:01:31 -05:00
meson.build Revert "modules: Fix build on Visual Studio" 2022-10-31 20:20:32 -04:00