Use W32 visibility for Cygwin

Cygwin is still subject to W32 visibility mechanics.
This commit is contained in:
Руслан Ижбулатов 2019-03-20 21:10:58 +00:00
parent ff47bb0e53
commit 8758604579

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')