Revert "[lldb][test] Remove compiler version check and use regex" (#124101)
[llvm-project.git] / libc / src / locale / locale.h
blob14befa6e7a9c2402aad331d5ab85aa39b37c3a3a
1 //===-- Implementation header for the locale --------------------*- C++ -*-===//
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 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_LIBC_SRC_LOCALE_LOCALECONV_H
10 #define LLVM_LIBC_SRC_LOCALE_LOCALECONV_H
12 #include "src/__support/macros/attributes.h"
13 #include "src/__support/macros/config.h"
15 #include "hdr/types/locale_t.h"
17 #include <stddef.h>
19 namespace LIBC_NAMESPACE_DECL {
21 // We only support the "C" locale right now.
22 static constexpr size_t MAX_LOCALE_NAME_SIZE = 2;
24 struct __locale_data {
25 char name[MAX_LOCALE_NAME_SIZE];
28 // The pointer to the default "C" locale.
29 extern __locale_t c_locale;
31 // The global locale instance.
32 extern locale_t locale;
34 } // namespace LIBC_NAMESPACE_DECL
36 #endif // LLVM_LIBC_SRC_LOCALE_LOCALECONV_H