diff --git a/configure.in b/configure.in index 428d3f53a3..32e622485d 100644 --- a/configure.in +++ b/configure.in @@ -1685,6 +1685,9 @@ if test "$wxUSE_JOYSTICK" = 1; then fi fi + +AC_CHECK_FUNCS(vsscanf) + dnl ------------------------------------------------------------------------ dnl DLL support dnl ------------------------------------------------------------------------ diff --git a/src/html/htmltag.cpp b/src/html/htmltag.cpp index 16e780335f..9f36d68957 100644 --- a/src/html/htmltag.cpp +++ b/src/html/htmltag.cpp @@ -226,7 +226,8 @@ void wxHtmlTag::ScanParam(const wxString& par, char *format, ...) const va_start(argptr, format); -#if defined(__MINGW32__) || defined(__CYGWIN__) || defined(__VISUALC__) +//#if defined(__MINGW32__) || defined(__CYGWIN__) || defined(__VISUALC__) +#ifndef HAVE_VSSCANF sscanf((const char*)parval, format, va_arg(argptr, void *)); #else vsscanf((const char*)parval, format, argptr); @@ -245,4 +246,4 @@ void wxHtmlTag::ScanParam(const wxString& par, char *format, ...) const va_end(argptr); } -#endif \ No newline at end of file +#endif