summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTormod Volden <debian.tormod@gmail.com>2014-09-02 19:25:00 +0100
committerPete Batard <pete@akeo.ie>2014-09-03 14:10:42 +0100
commit4e95d0e7f90ea8bb900df61ef6e6dd4bbece114c (patch)
treeb475037c05796ecf8c52b5cf8cae82a3754ac21c
parent47e1141f6b064a99fad7956b9b00b335bd90476d (diff)
downloadlibusb-4e95d0e7f90ea8bb900df61ef6e6dd4bbece114c.tar.gz
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.
-rw-r--r--configure.ac1
-rw-r--r--libusb/version_nano.h2
2 files changed, 2 insertions, 1 deletions
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