From: Uwe Hermann Date: Thu, 31 Jul 2014 21:11:40 +0000 (+0200) Subject: configure.ac: MinGW build fix (setting WINVER=0x0501). X-Git-Tag: libserialport-0.1.1~117 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=9a8d04bca6bab617793c0b077f115a19d8e68d65;p=libserialport.git configure.ac: MinGW build fix (setting WINVER=0x0501). Without this the build fails with: windows.c:40:43: error: 'WC_NO_BEST_FIT_CHARS' undeclared (first use in this function) --- diff --git a/configure.ac b/configure.ac index d8f8148..1c5ef4f 100644 --- a/configure.ac +++ b/configure.ac @@ -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" ;; *)