GResolver: fix Windows 2000 workaround
authorDan Winship <danw@gnome.org>
Wed, 3 Mar 2010 13:35:32 +0000 (08:35 -0500)
committerDan Winship <danw@gnome.org>
Wed, 3 Mar 2010 13:35:32 +0000 (08:35 -0500)
Move the <wspiapi.h> include from gwin32resolver.c to
gnetworkingprivate.h, since gthreadedresolver.c needs it too.

https://bugzilla.gnome.org/show_bug.cgi?id=611696

gio/gnetworkingprivate.h
gio/gwin32resolver.c

index 56b800b..4477032 100644 (file)
 #include <windns.h>
 #include <mswsock.h>
 
+#ifdef HAVE_WSPIAPI_H
+/* <wspiapi.h> in the Windows SDK and in mingw-w64 has wrappers for
+ * inline workarounds for getaddrinfo, getnameinfo and freeaddrinfo if
+ * they aren't present at run-time (on Windows 2000).
+ */
+#include <wspiapi.h>
+#endif
+
 #else /* !G_OS_WIN32 */
 
 #include <sys/types.h>
index 13cb45e..5198b95 100644 (file)
 #include "gsimpleasyncresult.h"
 #include "gsocketaddress.h"
 
-#ifdef HAVE_WSPIAPI_H
-/* <wspiapi.h> in the Windows SDK and in mingw-w64 has wrappers for
- * inline workarounds for getaddrinfo, getnameinfo and freeaddrinfo if
- * they aren't present at run-time (on Windows 2000).
- */
-#include <wspiapi.h>
-#endif
-
 #include "gioalias.h"
 
 G_DEFINE_TYPE (GWin32Resolver, g_win32_resolver, G_TYPE_THREADED_RESOLVER)