33 lines · c
1//===-- Definition of macros from locale.h --------------------------------===//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-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef LLVM_LIBC_MACROS_LOCALE_MACROS_H10#define LLVM_LIBC_MACROS_LOCALE_MACROS_H11 12#include "../llvm-libc-types/locale_t.h"13 14#define LC_CTYPE 015#define LC_NUMERIC 116#define LC_TIME 217#define LC_COLLATE 318#define LC_MONETARY 419#define LC_MESSAGES 520#define LC_ALL 621 22#define LC_GLOBAL_LOCALE ((locale_t)(-1))23 24#define LC_CTYPE_MASK (1 << LC_CTYPE)25#define LC_NUMERIC_MASK (1 << LC_NUMERIC)26#define LC_TIME_MASK (1 << LC_TIME)27#define LC_COLLATE_MASK (1 << LC_COLLATE)28#define LC_MONETARY_MASK (1 << LC_MONETARY)29#define LC_MESSAGES_MASK (1 << LC_MESSAGES)30#define LC_ALL_MASK 0x7fffffff31 32#endif // LLVM_LIBC_MACROS_LOCALE_MACROS_H33