| // -*- C++ -*- | |
| //===------------------- support/android/locale_bionic.h ------------------===// | |
| // | |
| // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | |
| // See https://llvm.org/LICENSE.txt for license information. | |
| // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | |
| // | |
| //===----------------------------------------------------------------------===// | |
| extern "C" { | |
| } | |
| // In NDK versions later than 16, locale-aware functions are provided by | |
| // legacy_stdlib_inlines.h | |
| extern "C" { | |
| inline _LIBCUDACXX_INLINE_VISIBILITY float strtof_l(const char* __nptr, char** __endptr, | |
| locale_t) { | |
| return ::strtof(__nptr, __endptr); | |
| } | |
| inline _LIBCUDACXX_INLINE_VISIBILITY double strtod_l(const char* __nptr, | |
| char** __endptr, locale_t) { | |
| return ::strtod(__nptr, __endptr); | |
| } | |
| inline _LIBCUDACXX_INLINE_VISIBILITY long strtol_l(const char* __nptr, char** __endptr, | |
| int __base, locale_t) { | |
| return ::strtol(__nptr, __endptr, __base); | |
| } | |
| } | |