зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1440535 - Remove HAVE_MBRTOWC and HAVE_WCRTOMB from js/src/old-configure.in. r=froydnj
No one uses this defines even if SpiderMonkey and We forget to remove this by bug 1423846 MozReview-Commit-ID: 2MOavTX7zrf --HG-- extra : rebase_source : 3f881bd28ba2c762d9d0876d58330cf99d35ad49
This commit is contained in:
Родитель
1060e61b5c
Коммит
ad4d52eb38
|
@ -1113,33 +1113,6 @@ AC_CHECK_LIB(m, sin)
|
|||
AC_CHECK_LIB(m, sincos, AC_DEFINE(HAVE_SINCOS))
|
||||
AC_CHECK_LIB(m, __sincos, AC_DEFINE(HAVE___SINCOS))
|
||||
|
||||
|
||||
dnl check for wcrtomb/mbrtowc
|
||||
dnl =======================================================================
|
||||
if test -z "$MACOS_DEPLOYMENT_TARGET" || test "$MACOS_DEPLOYMENT_TARGET" -ge "100300"; then
|
||||
AC_LANG_SAVE
|
||||
AC_LANG_CPLUSPLUS
|
||||
AC_CACHE_CHECK(for wcrtomb,
|
||||
ac_cv_have_wcrtomb,
|
||||
[AC_TRY_LINK([#include <wchar.h>],
|
||||
[mbstate_t ps={0};wcrtomb(0,'f',&ps);],
|
||||
ac_cv_have_wcrtomb="yes",
|
||||
ac_cv_have_wcrtomb="no")])
|
||||
if test "$ac_cv_have_wcrtomb" = "yes"; then
|
||||
AC_DEFINE(HAVE_WCRTOMB)
|
||||
fi
|
||||
AC_CACHE_CHECK(for mbrtowc,
|
||||
ac_cv_have_mbrtowc,
|
||||
[AC_TRY_LINK([#include <wchar.h>],
|
||||
[mbstate_t ps={0};mbrtowc(0,0,0,&ps);],
|
||||
ac_cv_have_mbrtowc="yes",
|
||||
ac_cv_have_mbrtowc="no")])
|
||||
if test "$ac_cv_have_mbrtowc" = "yes"; then
|
||||
AC_DEFINE(HAVE_MBRTOWC)
|
||||
fi
|
||||
AC_LANG_RESTORE
|
||||
fi
|
||||
|
||||
AC_CACHE_CHECK(
|
||||
[for res_ninit()],
|
||||
ac_cv_func_res_ninit,
|
||||
|
|
Загрузка…
Ссылка в новой задаче