Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-03 08:13:33

0001 // -*- C++ -*-
0002 //===-----------------------------------------------------------------------===//
0003 //
0004 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0005 // See https://llvm.org/LICENSE.txt for license information.
0006 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0007 //
0008 //===----------------------------------------------------------------------===//
0009 // This adds support for the extended locale functions that are currently
0010 // missing from the Musl C library.
0011 //
0012 // This only works when the specified locale is "C" or "POSIX", but that's
0013 // about as good as we can do without implementing full xlocale support
0014 // in Musl.
0015 //===----------------------------------------------------------------------===//
0016 
0017 #ifndef _LIBCPP___CXX03___LOCALE_LOCALE_BASE_API_MUSL_H
0018 #define _LIBCPP___CXX03___LOCALE_LOCALE_BASE_API_MUSL_H
0019 
0020 #include <__cxx03/cstdlib>
0021 #include <__cxx03/cwchar>
0022 
0023 inline _LIBCPP_HIDE_FROM_ABI long long strtoll_l(const char* __nptr, char** __endptr, int __base, locale_t) {
0024   return ::strtoll(__nptr, __endptr, __base);
0025 }
0026 
0027 inline _LIBCPP_HIDE_FROM_ABI unsigned long long strtoull_l(const char* __nptr, char** __endptr, int __base, locale_t) {
0028   return ::strtoull(__nptr, __endptr, __base);
0029 }
0030 
0031 #endif // _LIBCPP___CXX03___LOCALE_LOCALE_BASE_API_MUSL_H