--- /dev/null
+#include "../../wincompat.h"
--- /dev/null
+#include "../../wincompat.h"
--- /dev/null
+#include "../../wincompat.h"
--- /dev/null
+#include "../../wincompat.h"
--- /dev/null
+#include "../../wincompat.h"
--- /dev/null
+#include "../../wincompat.h"
--- /dev/null
+#include "../../wincompat.h"
--- /dev/null
+#ifndef foowincompatfoo
+#define foowincompatfoo
+
+#undef WINVER
+#undef _WIN32_WINNT
+
+#define WINVER 0x0600 // Vista
+#define _WIN32_WINNT WINVER
+
+#include <winsock2.h>
+
+#endif
AC_MSG_ERROR([C99 support is required])
fi
+# Windows stuff
+AC_CHECK_DECL(_WIN32)
+AM_CONDITIONAL([WINDOWS], [ test "x$ac_cv_have_decl__WIN32" = "xyes" ])
+
# -fstack-protector
AC_ARG_ENABLE([stack-protector],
[AS_HELP_STRING([--disable-stack-protector],
AM_CFLAGS=-I$(top_srcdir)/include
+if WINDOWS
+AM_CFLAGS += -I$(top_srcdir)/compat/windows/include
+endif
+
# This cool debug trap works on i386/gcc only
AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")'