mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-05 23:48:44 +02:00
Meson: Set _WIN32_WINNT to 0x0601 (Windows 7)
We want to set _WIN32_WINNT so that functions will be properly found in the headers, to target the NT6.1+ (Windows 7+) APIs. Also improve the checks for if_nametoindex() and if_indextoname() on Windows as they are supported in Windows Vista+, but they have to be checked by linking against iphlpapi.lib (or -liphlpapi). On other platforms, they are still checked as they were before. https://bugzilla.gnome.org/show_bug.cgi?id=783270
This commit is contained in:
@@ -768,7 +768,7 @@
|
||||
/* Define for large files, on AIX-style hosts. */
|
||||
#mesondefine _LARGE_FILES
|
||||
|
||||
/* Target the Windows XP API */
|
||||
/* Target the Windows 7 API */
|
||||
#mesondefine _WIN32_WINNT
|
||||
|
||||
/* Needed to get declarations for msg_control and msg_controllen on Solaris */
|
||||
|
Reference in New Issue
Block a user