clocale 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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_CLOCALE
  10. #define _LIBCPP_CLOCALE
  11. /*
  12. clocale synopsis
  13. Macros:
  14. LC_ALL
  15. LC_COLLATE
  16. LC_CTYPE
  17. LC_MONETARY
  18. LC_NUMERIC
  19. LC_TIME
  20. NULL
  21. namespace std
  22. {
  23. struct lconv;
  24. char* setlocale(int category, const char* locale);
  25. lconv* localeconv();
  26. } // std
  27. */
  28. #include <__config>
  29. #include <locale.h>
  30. #ifndef _LIBCPP_LOCALE_H
  31. # error <clocale> tried including <locale.h> but didn't find libc++'s <locale.h> header. \
  32. This usually means that your header search paths are not configured properly. \
  33. The header search paths should contain the C++ Standard Library headers before \
  34. any C Standard Library, and you are probably using compiler flags that make that \
  35. not be the case.
  36. #endif
  37. #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
  38. # pragma GCC system_header
  39. #endif
  40. _LIBCPP_BEGIN_NAMESPACE_STD
  41. using ::lconv _LIBCPP_USING_IF_EXISTS;
  42. using ::setlocale _LIBCPP_USING_IF_EXISTS;
  43. using ::localeconv _LIBCPP_USING_IF_EXISTS;
  44. _LIBCPP_END_NAMESPACE_STD
  45. #endif // _LIBCPP_CLOCALE