xlocale.h 843 B

123456789101112131415161718192021222324252627
  1. //===----------------------------------------------------------------------===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. #ifndef _LIBCPP_SUPPORT_NEWLIB_XLOCALE_H
  9. #define _LIBCPP_SUPPORT_NEWLIB_XLOCALE_H
  10. #if defined(_NEWLIB_VERSION)
  11. #include <cstdlib>
  12. #include <clocale>
  13. #include <cwctype>
  14. #include <ctype.h>
  15. #if !defined(__NEWLIB__) || __NEWLIB__ < 2 || \
  16. __NEWLIB__ == 2 && __NEWLIB_MINOR__ < 5
  17. #include <__support/xlocale/__nop_locale_mgmt.h>
  18. #include <__support/xlocale/__posix_l_fallback.h>
  19. #include <__support/xlocale/__strtonum_fallback.h>
  20. #endif
  21. #endif // _NEWLIB_VERSION
  22. #endif