From 9a8d04bca6bab617793c0b077f115a19d8e68d65 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Thu, 31 Jul 2014 23:11:40 +0200 Subject: [PATCH] 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) --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) 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" ;; *)