build: define G_OS_UNIX, not G_OS_WIN32 under cygwin

This makes glib build under msys2 for me.
This commit is contained in:
Christoph Reiter 2019-05-21 18:54:34 +02:00
parent dfa7a5b5b5
commit 767e6a4cac

View File

@ -198,7 +198,7 @@ if host_system == 'windows'
glib_os = '''#define G_OS_WIN32
#define G_PLATFORM_WIN32'''
elif host_system == 'cygwin'
glib_os = '''#define G_OS_WIN32
glib_os = '''#define G_OS_UNIX
#define G_WITH_CYGWIN'''
else
glib_os = '#define G_OS_UNIX'