xlocale.h 998 B

1234567891011121314151617181920212223242526272829303132333435
  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. #ifndef _LIBCPP___SUPPORT_OPENBSD_XLOCALE_H
  10. #define _LIBCPP___SUPPORT_OPENBSD_XLOCALE_H
  11. #include <__support/xlocale/__strtonum_fallback.h>
  12. #include <clocale>
  13. #include <cstdlib>
  14. #include <ctype.h>
  15. #include <cwctype>
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19. inline _LIBCPP_HIDE_FROM_ABI_C long strtol_l(const char* __nptr, char** __endptr, int __base, locale_t) {
  20. return ::strtol(__nptr, __endptr, __base);
  21. }
  22. inline _LIBCPP_HIDE_FROM_ABI_C unsigned long strtoul_l(const char* __nptr, char** __endptr, int __base, locale_t) {
  23. return ::strtoul(__nptr, __endptr, __base);
  24. }
  25. #ifdef __cplusplus
  26. }
  27. #endif
  28. #endif