blob: 05fa9c6edda8e414cb0b241f89d2ae216f289102 [file] [log] [blame]
Howard Hinnantbc8d3f92010-05-11 19:42:16 +00001// -*- C++ -*-
2//===--------------------------- clocale ----------------------------------===//
3//
Howard Hinnantf5256e12010-05-11 21:36:01 +00004// The LLVM Compiler Infrastructure
Howard Hinnantbc8d3f92010-05-11 19:42:16 +00005//
Howard Hinnantb64f8b02010-11-16 22:09:02 +00006// This file is dual licensed under the MIT and the University of Illinois Open
7// Source Licenses. See LICENSE.TXT for details.
Howard Hinnantbc8d3f92010-05-11 19:42:16 +00008//
9//===----------------------------------------------------------------------===//
10
11#ifndef _LIBCPP_CLOCALE
12#define _LIBCPP_CLOCALE
13
14/*
15 clocale synopsis
16
17Macros:
18
19 LC_ALL
20 LC_COLLATE
21 LC_CTYPE
22 LC_MONETARY
23 LC_NUMERIC
24 LC_TIME
25 NULL
26
27namespace std
28{
29
30struct lconv;
31char* setlocale(int category, const char* locale);
32lconv* localeconv();
33
34} // std
35
36*/
37
38#include <__config>
39#include <locale.h>
40
Howard Hinnant08e17472011-10-17 20:05:10 +000041#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
Howard Hinnantbc8d3f92010-05-11 19:42:16 +000042#pragma GCC system_header
Howard Hinnant08e17472011-10-17 20:05:10 +000043#endif
Howard Hinnantbc8d3f92010-05-11 19:42:16 +000044
45_LIBCPP_BEGIN_NAMESPACE_STD
46
47using ::lconv;
Ed Schouten323ade32015-06-24 08:44:38 +000048#ifndef _LIBCPP_HAS_NO_THREAD_UNSAFE_C_FUNCTIONS
Howard Hinnantbc8d3f92010-05-11 19:42:16 +000049using ::setlocale;
Ed Schouten323ade32015-06-24 08:44:38 +000050#endif
Howard Hinnantbc8d3f92010-05-11 19:42:16 +000051using ::localeconv;
52
53_LIBCPP_END_NAMESPACE_STD
54
55#endif // _LIBCPP_CLOCALE