fix a few issues with win32 build

This commit is contained in:
Andrzej Rybczak
2012-08-16 07:48:20 +02:00
parent b1f5eeaa8b
commit fbd4a0484e
2 changed files with 4 additions and 7 deletions

View File

@@ -41,11 +41,9 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ ]])],
) )
CXXFLAGS="$old_CXXFLAGS $no_exceptions" CXXFLAGS="$old_CXXFLAGS $no_exceptions"
dnl ==============================
dnl ==================================== dnl = checking for regex (win32) =
dnl = checking for win32 related stuff = dnl ==============================
dnl ====================================
AC_CHECK_LIB(ws2_32, _head_libws2_32_a, LDFLAGS="$LDFLAGS -lws2_32", )
AC_CHECK_LIB(regex, regcomp, LDFLAGS="$LDFLAGS -lregex", ) AC_CHECK_LIB(regex, regcomp, LDFLAGS="$LDFLAGS -lregex", )
dnl ================================ dnl ================================
@@ -191,7 +189,6 @@ if test "$curl" != "no" ; then
fi fi
fi fi
dnl ======================= dnl =======================
dnl = checking for taglib = dnl = checking for taglib =
dnl ======================= dnl =======================

View File

@@ -112,7 +112,7 @@
// workaraund for win32 // workaraund for win32
#ifdef WIN32 #ifdef WIN32
# define wcwidth(x) 1 # define wcwidth(x) int(!iscntrl(x))
#endif #endif
/// Converts wide string to narrow string /// Converts wide string to narrow string