Probably wrong information regarding G_PLATFORM_WIN32 in README.win32.md
In README.win32.md
it's noted:
-
G_PLATFORM_WIN32
is defined when eitherG_OS_WIN32
orG_WITH_CYGWIN
is defined.
But in meson.build
it's implemented different:
-
G_PLATFORM_WIN32
is a synonym forG_OS_WIN32
, so it is not defined withG_WITH_CYGWIN
# Cygwin glib port maintainers made it clear
# (via the patches they apply) that they want no
# part of glib W32 code, therefore we do not define
# G_PLATFORM_WIN32 for host_system == 'cygwin'.
# This makes G_PLATFORM_WIN32 a synonym for
# G_OS_WIN32.
if host_system == 'windows'
glib_os = '''#define G_OS_WIN32
#define G_PLATFORM_WIN32'''
elif host_system == 'cygwin'
glib_os = '''#define G_OS_UNIX
#define G_WITH_CYGWIN'''
else
glib_os = '#define G_OS_UNIX'
endif
So I assume information in README.win32.md
is not correct and should be corrected. Maybe also G_PLATFORM_WIN32
may be declared deprecated.