gwin32: Fix detection of MinGW32 vs MinGW-w64a9fe62aa2cfcf3fb3c8223f31ccb8936784c85eb
commita9fe62aa2cfcf3fb3c8223f31ccb8936784c85eb
authorNirbheek Chauhan <nirbheek@centricular.com>
Sun, 6 May 2018 09:59:09 +0000 (6 15:29 +0530)
committerPhilip Withnall <withnall@endlessm.com>
Wed, 16 May 2018 10:07:30 +0000 (16 11:07 +0100)
treedffb8cd49d97d7e5334f33d90c6fd88be0f8a3eb
parentab0a0c706cfa8105a93972b3e31875af9bf77792
gwin32: Fix detection of MinGW32 vs MinGW-w64

__MINGW32__ is defined on all MinGW variants including MinGW-w64.
__MINGW64_VERSION_MAJOR is only defined on MinGW-w64.

This difference is important because on MinGW-w64 we must #include
winternl.h because including ntdef.h results in compiler errors
about symbol redefinition, and the header warns that it is deprecated
and may be removed in the future.

https://bugzilla.gnome.org/show_bug.cgi?id=795849
glib/gwin32.c