10b57cec5SDimitry Andric// -*- C++ -*- 2349cc55cSDimitry Andric//===----------------------------------------------------------------------===// 30b57cec5SDimitry Andric// 40b57cec5SDimitry Andric// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 50b57cec5SDimitry Andric// See https://llvm.org/LICENSE.txt for license information. 60b57cec5SDimitry Andric// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 70b57cec5SDimitry Andric// 80b57cec5SDimitry Andric//===----------------------------------------------------------------------===// 90b57cec5SDimitry Andric 100b57cec5SDimitry Andric#ifndef _LIBCPP_CLOCALE 110b57cec5SDimitry Andric#define _LIBCPP_CLOCALE 120b57cec5SDimitry Andric 130b57cec5SDimitry Andric/* 140b57cec5SDimitry Andric clocale synopsis 150b57cec5SDimitry Andric 160b57cec5SDimitry AndricMacros: 170b57cec5SDimitry Andric 180b57cec5SDimitry Andric LC_ALL 190b57cec5SDimitry Andric LC_COLLATE 200b57cec5SDimitry Andric LC_CTYPE 210b57cec5SDimitry Andric LC_MONETARY 220b57cec5SDimitry Andric LC_NUMERIC 230b57cec5SDimitry Andric LC_TIME 240b57cec5SDimitry Andric NULL 250b57cec5SDimitry Andric 260b57cec5SDimitry Andricnamespace std 270b57cec5SDimitry Andric{ 280b57cec5SDimitry Andric 290b57cec5SDimitry Andricstruct lconv; 300b57cec5SDimitry Andricchar* setlocale(int category, const char* locale); 310b57cec5SDimitry Andriclconv* localeconv(); 320b57cec5SDimitry Andric 330b57cec5SDimitry Andric} // std 340b57cec5SDimitry Andric 350b57cec5SDimitry Andric*/ 360b57cec5SDimitry Andric 370b57cec5SDimitry Andric#include <__config> 38*bdd1243dSDimitry Andric 390b57cec5SDimitry Andric#include <locale.h> 400b57cec5SDimitry Andric 41*bdd1243dSDimitry Andric#ifndef _LIBCPP_LOCALE_H 42*bdd1243dSDimitry Andric# error <clocale> tried including <locale.h> but didn't find libc++'s <locale.h> header. \ 43*bdd1243dSDimitry Andric This usually means that your header search paths are not configured properly. \ 44*bdd1243dSDimitry Andric The header search paths should contain the C++ Standard Library headers before \ 45*bdd1243dSDimitry Andric any C Standard Library, and you are probably using compiler flags that make that \ 46*bdd1243dSDimitry Andric not be the case. 47*bdd1243dSDimitry Andric#endif 48*bdd1243dSDimitry Andric 490b57cec5SDimitry Andric#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) 500b57cec5SDimitry Andric# pragma GCC system_header 510b57cec5SDimitry Andric#endif 520b57cec5SDimitry Andric 530b57cec5SDimitry Andric_LIBCPP_BEGIN_NAMESPACE_STD 540b57cec5SDimitry Andric 55fe6060f1SDimitry Andricusing ::lconv _LIBCPP_USING_IF_EXISTS; 56fe6060f1SDimitry Andricusing ::setlocale _LIBCPP_USING_IF_EXISTS; 57fe6060f1SDimitry Andricusing ::localeconv _LIBCPP_USING_IF_EXISTS; 580b57cec5SDimitry Andric 590b57cec5SDimitry Andric_LIBCPP_END_NAMESPACE_STD 600b57cec5SDimitry Andric 610b57cec5SDimitry Andric#endif // _LIBCPP_CLOCALE 62