From 4e95d0e7f90ea8bb900df61ef6e6dd4bbece114c Mon Sep 17 00:00:00 2001 From: Tormod Volden Date: Tue, 2 Sep 2014 19:25:00 +0100 Subject: [PATCH] Windows: Define WINVER to fix building on MinGW * For newer versions of MinGW, VerSetConditionMask() is only defined if building for Windows XP (0x501) or newer. --- configure.ac | 1 + libusb/version_nano.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index fffa2e8..b662c0d 100644 --- a/configure.ac +++ b/configure.ac @@ -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 diff --git a/libusb/version_nano.h b/libusb/version_nano.h index ada73a8..79784e2 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 10911 +#define LIBUSB_NANO 10913 -- 2.7.4