2 //===-----------------------------------------------------------------------===//
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-exception
8 //===----------------------------------------------------------------------===//
10 #ifndef _LIBCPP___SUPPORT_OPENBSD_XLOCALE_H
11 #define _LIBCPP___SUPPORT_OPENBSD_XLOCALE_H
13 #include <__support/xlocale/__strtonum_fallback.h>
23 inline _LIBCPP_HIDE_FROM_ABI_C
long strtol_l(const char* __nptr
, char** __endptr
, int __base
, locale_t
) {
24 return ::strtol(__nptr
, __endptr
, __base
);
27 inline _LIBCPP_HIDE_FROM_ABI_C
unsigned long strtoul_l(const char* __nptr
, char** __endptr
, int __base
, locale_t
) {
28 return ::strtoul(__nptr
, __endptr
, __base
);