Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
LTLDFLAGS="${LTLDFLAGS} -avoid-version -Wl,--add-stdcall-alias"
AC_DEFINE([POLL_NFDS_TYPE],[unsigned int],[type of second poll() argument])
AC_DEFINE([WINVER], 0x0501, [Oldest Windows version supported])
+ AC_DEFINE([_WIN32_WINNT], 0x0501, [Oldest Windows version supported])
AC_ARG_ENABLE([usbdk],
[AC_HELP_STRING([--enable-usbdk], [use UsbDk Windows backend [default=no]])],
-#define LIBUSB_NANO 11244
+#define LIBUSB_NANO 11245
#error "Please make sure the msvc/ directory is removed from your build path."
#endif
+/* Only support Windows XP and later */
+#define WINVER 0x0501
+#define _WIN32_WINNT 0x0501
+
/* Visual Studio 2015 and later defines timespec */
#if defined(_MSC_VER) && (_MSC_VER >= 1900)
#define _TIMESPEC_DEFINED 1