Merge branch 'cygwin-visibility' into 'master'

Use W32 visibility for Cygwin

See merge request GNOME/glib!752
This commit is contained in:
Philip Withnall 2019-04-03 16:03:16 +00:00
commit 9d43bfc4ed

View File

@ -169,7 +169,7 @@ endif
# Detect and set symbol visibility
glib_hidden_visibility_args = []
if get_option('default_library') != 'static'
if host_system == 'windows'
if host_system == 'windows' or host_system == 'cygwin'
glib_conf.set('DLL_EXPORT', true)
if cc.get_id() == 'msvc'
glib_conf.set('_GLIB_EXTERN', '__declspec(dllexport) extern')