Windows: Define WINVER to fix building on MinGW
authorTormod Volden <debian.tormod@gmail.com>
Tue, 2 Sep 2014 18:25:00 +0000 (19:25 +0100)
committerPete Batard <pete@akeo.ie>
Wed, 3 Sep 2014 13:10:42 +0000 (14:10 +0100)
* For newer versions of MinGW, VerSetConditionMask() is only defined
  if building for Windows XP (0x501) or newer.

configure.ac
libusb/version_nano.h

index fffa2e8..b662c0d 100644 (file)
@@ -168,6 +168,7 @@ windows)
        LIBS=""
        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])
        ;;
 esac
 
index ada73a8..79784e2 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 10911
+#define LIBUSB_NANO 10913