X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=config.h.win32.in;h=aa700e35b2261a6212f0cf131e0fc58800df7eb7;hb=f2ceb74e91e05e9556622bc2cde7ab57cbc30ea3;hp=89c93dd555b48e8e787a7961528b01001210eede;hpb=62206576c34d4ea10d43324144db44970c99dd97;p=platform%2Fupstream%2Fglib.git diff --git a/config.h.win32.in b/config.h.win32.in index 89c93dd..aa700e3 100644 --- a/config.h.win32.in +++ b/config.h.win32.in @@ -207,18 +207,24 @@ /* Define to 1 if you have the `hasmntopt' function. */ /* #undef HAVE_HASMNTOPT */ +/* Target the Windows XP API */ +#ifndef _WIN32_WINNT +#define _WIN32_WINNT 0x0501 +#endif + +#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. */ -/* This is available on Windows, but the catch is that this will require */ -/* 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 HAVE_IF_INDEXTONAME 1 /* Define to 1 if you have the `if_nametoindex' function. */ -/* This is available on Windows, but the catch is that this will require */ -/* 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 */ -/* A workaround for Windows XP is under review in Bug 668071 */ -/* #undef HAVE_IF_NAMETOINDEX */ +#define HAVE_IF_NAMETOINDEX 1 + +#endif /* Define to 1 if you have the `inotify_init1' function. */ /* #undef HAVE_INOTIFY_INIT1 */ @@ -853,9 +859,6 @@ /* Define to 1 if you need to in order for `stat' and other things to work. */ /* #undef _POSIX_SOURCE */ -/* Target the Windows XP API */ -#define _WIN32_WINNT 0x0501 - /* Needed to get declarations for msg_control and msg_controllen on Solaris */ /* #undef _XOPEN_SOURCE */