Fix latest GTK master on Visual Studio
Hi,
This attempts to fix the latest GTK master building on Visual Studio, namely by:
- Including
stdlib.h
in the demo sources where needed. This avoids C4013 errors (akaimplicit definition of ...
warnings). - Making sure that the various modules do not try to use
G_MODULE_EXPORT
in the sources whereg_io_module_load()
,g_io_module_unload()
andg_io_module_query()
are defined, because they have been marked with_GLIB_EXTERN
(meaningextern
by default) in the GIO headers, which Visual Studio does not allow. To export these symbols when building the modules, just define_GLIB_EXTERN
as_GDK_EXTERN
, which should do the job for for us, since the module sources always includedconfig.h
.
With blessings, thank you!
Edited by Chun-wei Fan