mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
Update config.h.win32.in for Newer Windows
Make use of if_indextoname() and if_nametoindex() when building against Window Vista/Server 2008 or later, as these are provided by the system. This is not turned on by default as we still want to support XP and Server 2003-turn this on by changing _WIN32_WINNT to 0x600 or later prior to compiling GLib. https://bugzilla.gnome.org/show_bug.cgi?id=730352
This commit is contained in:
parent
4844b4bb56
commit
f4ae0cbf9a
@ -207,18 +207,22 @@
|
|||||||
/* Define to 1 if you have the `hasmntopt' function. */
|
/* Define to 1 if you have the `hasmntopt' function. */
|
||||||
/* #undef HAVE_HASMNTOPT */
|
/* #undef HAVE_HASMNTOPT */
|
||||||
|
|
||||||
|
/* Target the Windows XP API */
|
||||||
|
#define _WIN32_WINNT 0x0501
|
||||||
|
|
||||||
|
#if _WIN32_WINNT >= 0x0600
|
||||||
|
/* if_indextoname() and if_nametoindex() are available on Windows Vista/Server
|
||||||
|
* 2008 or later, so we can make use of them when building agaist Vista/Server
|
||||||
|
* 2008 or later.
|
||||||
|
*/
|
||||||
|
|
||||||
/* Define to 1 if you have the `if_indextoname' function. */
|
/* Define to 1 if you have the `if_indextoname' function. */
|
||||||
/* This is available on Windows, but the catch is that this will require */
|
#define HAVE_IF_INDEXTONAME 1
|
||||||
/* Windows Vista/Server 2008, so disabled for now-please see */
|
|
||||||
/* http://msdn.microsoft.com/en-us/library/windows/desktop/bb408408%28v=vs.85%29.aspx */
|
|
||||||
/* #undef HAVE_IF_INDEXTONAME */
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `if_nametoindex' function. */
|
/* Define to 1 if you have the `if_nametoindex' function. */
|
||||||
/* This is available on Windows, but the catch is that this will require */
|
#define HAVE_IF_NAMETOINDEX 1
|
||||||
/* Windows Vista/Server 2008, so disabled for now-please see */
|
|
||||||
/* http://msdn.microsoft.com/en-us/library/windows/desktop/bb408409%28v=vs.85%29.aspx */
|
#endif
|
||||||
/* A workaround for Windows XP is under review in Bug 668071 */
|
|
||||||
/* #undef HAVE_IF_NAMETOINDEX */
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `inotify_init1' function. */
|
/* Define to 1 if you have the `inotify_init1' function. */
|
||||||
/* #undef HAVE_INOTIFY_INIT1 */
|
/* #undef HAVE_INOTIFY_INIT1 */
|
||||||
@ -853,9 +857,6 @@
|
|||||||
/* Define to 1 if you need to in order for `stat' and other things to work. */
|
/* Define to 1 if you need to in order for `stat' and other things to work. */
|
||||||
/* #undef _POSIX_SOURCE */
|
/* #undef _POSIX_SOURCE */
|
||||||
|
|
||||||
/* Target the Windows XP API */
|
|
||||||
#define _WIN32_WINNT 0x0501
|
|
||||||
|
|
||||||
/* Needed to get declarations for msg_control and msg_controllen on Solaris */
|
/* Needed to get declarations for msg_control and msg_controllen on Solaris */
|
||||||
/* #undef _XOPEN_SOURCE */
|
/* #undef _XOPEN_SOURCE */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user