diff options
author | Tormod Volden <debian.tormod@gmail.com> | 2014-09-02 19:25:00 +0100 |
---|---|---|
committer | Pete Batard <pete@akeo.ie> | 2014-09-03 14:10:42 +0100 |
commit | 4e95d0e7f90ea8bb900df61ef6e6dd4bbece114c (patch) | |
tree | b475037c05796ecf8c52b5cf8cae82a3754ac21c /configure.ac | |
parent | 47e1141f6b064a99fad7956b9b00b335bd90476d (diff) | |
download | libusb-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.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 1 |
1 files changed, 1 insertions, 0 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 |