From: Karsten Ballüder Date: Mon, 19 Jul 1999 13:03:17 +0000 (+0000) Subject: Added test for vsscanf. GUESSING IS EVIL! Cannot test, my autoconf is too old. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4d223b670407f32abd3ca962ec08fdc0da2df3f8?ds=inline Added test for vsscanf. GUESSING IS EVIL! Cannot test, my autoconf is too old. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3043 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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