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-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 #ifndef LLVM_LIBC_MACROS_LOCALE_MACROS_H 10 #define LLVM_LIBC_MACROS_LOCALE_MACROS_H 11 12 #include "../llvm-libc-types/locale_t.h" 13 14 #define LC_CTYPE 0 15 #define LC_NUMERIC 1 16 #define LC_TIME 2 17 #define LC_COLLATE 3 18 #define LC_MONETARY 4 19 #define LC_MESSAGES 5 20 #define LC_ALL 6 21 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 0x7fffffff 31 32 #endif // LLVM_LIBC_MACROS_LOCALE_MACROS_H 33