Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
locale_bionic.h68 linesDownload Raw Back to android
1// -*- C++ -*-2//===------------------- support/android/locale_bionic.h ------------------===//3//4// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.5// See https://llvm.org/LICENSE.txt for license information.6// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception7//8//===----------------------------------------------------------------------===//9 10#ifndef _LIBCUDACXX_SUPPORT_ANDROID_LOCALE_BIONIC_H11#define _LIBCUDACXX_SUPPORT_ANDROID_LOCALE_BIONIC_H12 13#if defined(__BIONIC__)14 15#ifdef __cplusplus16extern "C" {17#endif18 19#include <stdlib.h>20#include <xlocale.h>21 22#ifdef __cplusplus23}24#endif25 26#if defined(__ANDROID__)27 28#include <android/api-level.h>29#include <android/ndk-version.h>30#include <support/xlocale/__posix_l_fallback.h>31// In NDK versions later than 16, locale-aware functions are provided by32// legacy_stdlib_inlines.h33#if __NDK_MAJOR__ <= 1634#if __ANDROID_API__ < 2135#include <support/xlocale/__strtonum_fallback.h>36#elif __ANDROID_API__ < 2637 38#if defined(__cplusplus)39extern "C" {40#endif41 42inline _LIBCUDACXX_INLINE_VISIBILITY float strtof_l(const char* __nptr, char** __endptr,43                                                locale_t) {44  return ::strtof(__nptr, __endptr);45}46 47inline _LIBCUDACXX_INLINE_VISIBILITY double strtod_l(const char* __nptr,48                                                 char** __endptr, locale_t) {49  return ::strtod(__nptr, __endptr);50}51 52inline _LIBCUDACXX_INLINE_VISIBILITY long strtol_l(const char* __nptr, char** __endptr,53                                               int __base, locale_t) {54  return ::strtol(__nptr, __endptr, __base);55}56 57#if defined(__cplusplus)58}59#endif60 61#endif // __ANDROID_API__ < 2662 63#endif // __NDK_MAJOR__ <= 1664#endif // defined(__ANDROID__)65 66#endif // defined(__BIONIC__)67#endif // _LIBCUDACXX_SUPPORT_ANDROID_LOCALE_BIONIC_H68 
codekingpro/portable-devtools · Team Ai