Tests for declarations of snprintf/vsnprintf/vsscanf should be done in C++.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53035 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Neis
2008-04-05 21:00:46 +00:00
parent 5fe2804ebb
commit e203535ff0
2 changed files with 14 additions and 0 deletions

View File

@@ -4029,6 +4029,7 @@ dnl
dnl FIXME: replace this mess with WX_CHECK_FUNCS()
AC_CHECK_FUNCS(snprintf vsnprintf vsscanf)
AC_LANG_PUSH(C++)
if test "$ac_cv_func_vsnprintf" = "yes"; then
dnl yes it is -- now check if it is in the headers
AC_CACHE_CHECK([for vsnprintf declaration], wx_cv_func_vsnprintf_decl,
@@ -4194,6 +4195,7 @@ if test "$ac_cv_func_vsscanf" = "yes"; then
AC_DEFINE(HAVE_VSSCANF_DECL)
fi
fi
AC_LANG_POP()
if test "$wxUSE_UNICODE" = yes; then