[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / libcxx / include / __support / openbsd / xlocale.h
blobb969ae9d106a7982d32cd09a6a7482b2aa9ee7fc
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 //===----------------------------------------------------------------------===//
10 #ifndef _LIBCPP___SUPPORT_OPENBSD_XLOCALE_H
11 #define _LIBCPP___SUPPORT_OPENBSD_XLOCALE_H
13 #include <__support/xlocale/__strtonum_fallback.h>
14 #include <clocale>
15 #include <cstdlib>
16 #include <ctype.h>
17 #include <cwctype>
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
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);
31 #ifdef __cplusplus
33 #endif
35 #endif