mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
libcxx cstdlib, cwchar: avoid using long long functions if not
supported, even for older compilers that do not support the
using_if_exists attribute.
PR: 280562
MFC after: 1 month
(cherry picked from commit 6b4981df60)
This commit is contained in:
parent
5ace2b9e19
commit
983d17bc1d
2 changed files with 16 additions and 0 deletions
|
|
@ -102,18 +102,26 @@ _LIBCPP_BEGIN_NAMESPACE_STD
|
|||
using ::size_t _LIBCPP_USING_IF_EXISTS;
|
||||
using ::div_t _LIBCPP_USING_IF_EXISTS;
|
||||
using ::ldiv_t _LIBCPP_USING_IF_EXISTS;
|
||||
#if defined(__FreeBSD__) && defined(__LONG_LONG_SUPPORTED)
|
||||
using ::lldiv_t _LIBCPP_USING_IF_EXISTS;
|
||||
#endif
|
||||
using ::atof _LIBCPP_USING_IF_EXISTS;
|
||||
using ::atoi _LIBCPP_USING_IF_EXISTS;
|
||||
using ::atol _LIBCPP_USING_IF_EXISTS;
|
||||
#if defined(__FreeBSD__) && defined(__LONG_LONG_SUPPORTED)
|
||||
using ::atoll _LIBCPP_USING_IF_EXISTS;
|
||||
#endif
|
||||
using ::strtod _LIBCPP_USING_IF_EXISTS;
|
||||
using ::strtof _LIBCPP_USING_IF_EXISTS;
|
||||
using ::strtold _LIBCPP_USING_IF_EXISTS;
|
||||
using ::strtol _LIBCPP_USING_IF_EXISTS;
|
||||
#if defined(__FreeBSD__) && defined(__LONG_LONG_SUPPORTED)
|
||||
using ::strtoll _LIBCPP_USING_IF_EXISTS;
|
||||
#endif
|
||||
using ::strtoul _LIBCPP_USING_IF_EXISTS;
|
||||
#if defined(__FreeBSD__) && defined(__LONG_LONG_SUPPORTED)
|
||||
using ::strtoull _LIBCPP_USING_IF_EXISTS;
|
||||
#endif
|
||||
using ::rand _LIBCPP_USING_IF_EXISTS;
|
||||
using ::srand _LIBCPP_USING_IF_EXISTS;
|
||||
using ::calloc _LIBCPP_USING_IF_EXISTS;
|
||||
|
|
@ -130,10 +138,14 @@ using ::bsearch _LIBCPP_USING_IF_EXISTS;
|
|||
using ::qsort _LIBCPP_USING_IF_EXISTS;
|
||||
using ::abs _LIBCPP_USING_IF_EXISTS;
|
||||
using ::labs _LIBCPP_USING_IF_EXISTS;
|
||||
#if defined(__FreeBSD__) && defined(__LONG_LONG_SUPPORTED)
|
||||
using ::llabs _LIBCPP_USING_IF_EXISTS;
|
||||
#endif
|
||||
using ::div _LIBCPP_USING_IF_EXISTS;
|
||||
using ::ldiv _LIBCPP_USING_IF_EXISTS;
|
||||
#if defined(__FreeBSD__) && defined(__LONG_LONG_SUPPORTED)
|
||||
using ::lldiv _LIBCPP_USING_IF_EXISTS;
|
||||
#endif
|
||||
using ::mblen _LIBCPP_USING_IF_EXISTS;
|
||||
#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
|
||||
using ::mbtowc _LIBCPP_USING_IF_EXISTS;
|
||||
|
|
|
|||
|
|
@ -151,9 +151,13 @@ using ::wcstod _LIBCPP_USING_IF_EXISTS;
|
|||
using ::wcstof _LIBCPP_USING_IF_EXISTS;
|
||||
using ::wcstold _LIBCPP_USING_IF_EXISTS;
|
||||
using ::wcstol _LIBCPP_USING_IF_EXISTS;
|
||||
#if defined(__FreeBSD__) && defined(__LONG_LONG_SUPPORTED)
|
||||
using ::wcstoll _LIBCPP_USING_IF_EXISTS;
|
||||
#endif
|
||||
using ::wcstoul _LIBCPP_USING_IF_EXISTS;
|
||||
#if defined(__FreeBSD__) && defined(__LONG_LONG_SUPPORTED)
|
||||
using ::wcstoull _LIBCPP_USING_IF_EXISTS;
|
||||
#endif
|
||||
using ::wcscpy _LIBCPP_USING_IF_EXISTS;
|
||||
using ::wcsncpy _LIBCPP_USING_IF_EXISTS;
|
||||
using ::wcscat _LIBCPP_USING_IF_EXISTS;
|
||||
|
|
|
|||
Loading…
Reference in a new issue