wininet: Fix configure check by including windows.h
authorRaimo Järvi <raimo.jarvi@gmail.com>
Sat, 25 Jun 2011 20:55:28 +0000 (23:55 +0300)
committerDavid Schleef <ds@schleef.org>
Sun, 26 Jun 2011 01:09:10 +0000 (18:09 -0700)
Fixes bug #653161.

configure.ac

index da0305b..7268961 100644 (file)
@@ -1586,7 +1586,9 @@ translit(dnm, m, l) AM_CONDITIONAL(USE_WININET, true)
 AG_GST_CHECK_FEATURE(WININET, [Windows internet library], wininet, [
   AC_MSG_CHECKING([Checking for windows internet support])
   AC_CHECK_HEADERS([windows.h wininet.h],
-      [HAVE_WININET="yes"], [HAVE_WININET="no"])
+      [HAVE_WININET="yes"], [HAVE_WININET="no"],
+      [AC_INCLUDES_DEFAULT
+#include <windows.h>])
 ])
 
 dnl *** acm ***