Always check for wide char IO functions, they are used regardless of wxUSE_UNICODE setting

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76470 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2014-05-06 16:34:47 +00:00
parent 9a44838055
commit 6fc2e956cf
3 changed files with 33 additions and 39 deletions

3
configure vendored
View File

@@ -30050,8 +30050,6 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test "$wxUSE_UNICODE" = yes; then
wchar_headers="#include <stdio.h>
#include <wchar.h>"
case "${host}" in
@@ -30155,7 +30153,6 @@ else
$as_echo "no" >&6; }
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
fi
if test "$wxUSE_FILE" = "yes"; then

View File

@@ -4273,8 +4273,6 @@ if test "$ac_cv_func_vsscanf" = "yes"; then
fi
AC_LANG_POP()
if test "$wxUSE_UNICODE" = yes; then
dnl also look if we have wide char IO functions, notice that [f]putws are
dnl declared in special widec.h under Solaris
wchar_headers="#include <stdio.h>
@@ -4300,7 +4298,6 @@ if test "$wxUSE_UNICODE" = yes; then
[AC_MSG_RESULT([yes])
AC_DEFINE(HAVE__VSNWPRINTF)],
[AC_MSG_RESULT([no])]);
fi
if test "$wxUSE_FILE" = "yes"; then
WX_CHECK_FUNCS(fsync)

View File

@@ -202,7 +202,7 @@
so on but not all systems have them so use our own implementations in this
case.
*/
#if wxUSE_UNICODE && !defined(wxHAVE_TCHAR_SUPPORT) && !defined(HAVE_WPRINTF)
#if !defined(wxHAVE_TCHAR_SUPPORT) && !defined(HAVE_WPRINTF)
#define wxNEED_WPRINTF
#endif
#if !defined(wxHAVE_TCHAR_SUPPORT) && !defined(HAVE_VSWSCANF)