Brings LC_* defs into line with POSIX

POSIX requires that LC_* constants be defined as macros, and libc++ is testing
for this. Source: http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/locale.h.html

Change-Id: Id0653e54d74f12179ef88cadf7b5d6ba1bae3cdb
This commit is contained in:
Dan Albert 2014-04-18 12:36:06 -07:00
parent b88da06580
commit db68e56997

View File

@ -33,21 +33,19 @@
__BEGIN_DECLS __BEGIN_DECLS
enum { #define LC_CTYPE 0
LC_CTYPE = 0, #define LC_NUMERIC 1
LC_NUMERIC = 1, #define LC_TIME 2
LC_TIME = 2, #define LC_COLLATE 3
LC_COLLATE = 3, #define LC_MONETARY 4
LC_MONETARY = 4, #define LC_MESSAGES 5
LC_MESSAGES = 5, #define LC_ALL 6
LC_ALL = 6, #define LC_PAPER 7
LC_PAPER = 7, #define LC_NAME 8
LC_NAME = 8, #define LC_ADDRESS 9
LC_ADDRESS = 9, #define LC_TELEPHONE 10
LC_TELEPHONE = 10, #define LC_MEASUREMENT 11
LC_MEASUREMENT = 11, #define LC_IDENTIFICATION 12
LC_IDENTIFICATION = 12
};
#define LC_CTYPE_MASK (1 << LC_CTYPE) #define LC_CTYPE_MASK (1 << LC_CTYPE)
#define LC_NUMERIC_MASK (1 << LC_NUMERIC) #define LC_NUMERIC_MASK (1 << LC_NUMERIC)