fixes resulting from non-standard usage of swprintf

[SVN r7927]
This commit is contained in:
John Maddock
2000-10-12 11:25:16 +00:00
parent 224cb764cf
commit 65b6a3ba3e
8 changed files with 131 additions and 205 deletions

View File

@ -559,7 +559,7 @@ AC_TRY_LINK(
],
[
wchar_t c[50];
swprintf(c, L"abcd");
swprintf(c, 50, L"abcd");
],
[AC_MSG_RESULT(yes)],
[AC_DEFINE(BOOST_RE_NO_SWPRINTF,[])
@ -567,31 +567,6 @@ AC_MSG_RESULT(no)]
enable_swprintf="no")
fi
if test "$enable_wstring" != "no" && test "$enable_swprintf" = "no"; then
AC_MSG_CHECKING(for wsprintf support)
AC_TRY_LINK(
[
#include "confdefs.h"
#ifndef BOOST_RE_NO_WCHAR_H
#include <wchar.h>
#endif
#ifndef BOOST_RE_NO_WCTYPE_H
#include <wctype.h>
#endif
#include <string.h>
#include <stdio.h>
#include <widec.h>
],
[
wchar_t c[50];
wsprintf(c, "abcd");
],
[AC_MSG_RESULT(yes)],
[AC_DEFINE(BOOST_RE_NO_WSPRINTF,[])
AC_MSG_RESULT(no)])
fi
AC_ARG_ENABLE(member-templates, [--disable-member-templates turns off member template class and function support])
if test "$enable_member_templates" = "no"; then
@ -1743,5 +1718,6 @@ rm -f jm_opt.out