1 // -*- C++ -*-
2 //===-----------------------------------------------------------------------===//
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-exception
7 //
8 //===----------------------------------------------------------------------===//
9
10 #ifndef _LIBCPP___SUPPORT_OPENBSD_XLOCALE_H
11 #define _LIBCPP___SUPPORT_OPENBSD_XLOCALE_H
12
13 #include <__support/xlocale/__strtonum_fallback.h>
14 #include <clocale>
15 #include <cstdlib>
16 #include <ctype.h>
17 #include <cwctype>
18
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22
strtol_l(const char * __nptr,char ** __endptr,int __base,locale_t)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);
25 }
26
strtoul_l(const char * __nptr,char ** __endptr,int __base,locale_t)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);
29 }
30
31 #ifdef __cplusplus
32 }
33 #endif
34
35 #endif
36