forked from boostorg/regex
fixes resulting from non-standard usage of swprintf
[SVN r7927]
This commit is contained in:
28
configure.in
28
configure.in
@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user