]> sigrok.org Git - libserialport.git/commitdiff
configure.ac: MinGW build fix (setting WINVER=0x0501).
authorUwe Hermann <redacted>
Thu, 31 Jul 2014 21:11:40 +0000 (23:11 +0200)
committerUwe Hermann <redacted>
Thu, 31 Jul 2014 21:11:40 +0000 (23:11 +0200)
Without this the build fails with:

  windows.c:40:43: error: 'WC_NO_BEST_FIT_CHARS' undeclared (first use in
  this function)

configure.ac

index d8f81482572c52fdb686551f6d3420e15c6f0060..1c5ef4f8ff9dea80dc944ae2263158934b434d45 100644 (file)
@@ -95,6 +95,9 @@ mingw* | cygwin*)
        AM_CONDITIONAL([LINUX], false)
        AM_CONDITIONAL([WIN32], true)
        AM_CONDITIONAL([MACOSX], false)
+       # Set WINVER to 0x0501 (corresponds to Windows XP), needed for some
+       # defineŃ• such as WC_NO_BEST_FIT_CHARS.
+       CFLAGS="$CFLAGS -DWINVER=0x0501"
        SP_LIBS="-lsetupapi -luuid"
        ;;
 *)