diff options
author | Pete Batard <pete@akeo.ie> | 2011-09-12 11:47:37 +0100 |
---|---|---|
committer | Pete Batard <pete@akeo.ie> | 2011-09-12 11:51:11 +0100 |
commit | 0a752d777d46e805d6d36251a15c444937c1a518 (patch) | |
tree | 37e2a54f54a173981bd16a8d1b52a43ede983e17 | |
parent | 302aee7d0c4de650449165c0e0ba2e894a247417 (diff) | |
download | libusb-0a752d777d46e805d6d36251a15c444937c1a518.tar.gz |
[autotools] force Windows version to Windows 2000 or later
-rw-r--r-- | configure.ac | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 1812089..d5fd62b 100644 --- a/configure.ac +++ b/configure.ac @@ -86,6 +86,7 @@ if test "$backend" = windows; then AC_DEFINE(OS_WINDOWS, 1, [Windows backend]) AC_SUBST(OS_WINDOWS) PC_LIBS_PRIVATE="" + AM_CFLAGS="${AM_CFLAGS} -DWINVER=0x500" LTLDFLAGS="${LTLDFLAGS} -avoid-version -Wl,--add-stdcall-alias" AC_CHECK_TOOL(RC, windres, no) AC_DEFINE([POLL_NFDS_TYPE],[unsigned int],[type of second poll() argument]) @@ -192,7 +193,7 @@ AM_CONDITIONAL([HAVE_SIGACTION], [test "x$have_sigaction" = "xyes"]) # headers not available on all platforms but required on others AC_CHECK_HEADERS([sys/time.h]) -AM_CFLAGS="-std=gnu99 -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration $nopointersign_cflags -Wshadow" +AM_CFLAGS="${AM_CFLAGS} -std=gnu99 -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration $nopointersign_cflags -Wshadow" AC_SUBST(VISIBILITY_CFLAGS) AC_SUBST(AM_CFLAGS) |