Skip to content
Snippets Groups Projects
Commit 795ab0f5 authored by Avi Kivity's avatar Avi Kivity
Browse files

runtime: add some locale defines

musl doesn't provide these defines, and it isn't really necessary to put them
in some header.
parent c61691f1
No related branches found
No related tags found
No related merge requests found
......@@ -269,6 +269,14 @@ struct __locale_data
values __flexarr; /* Items, usually pointers into `filedata'. */
};
#define _NL_ITEM(category, index) (((category) << 16) | (index))
#define _NL_ITEM_CATEGORY(item) ((int) (item) >> 16)
#define _NL_ITEM_INDEX(item) ((int) (item) & 0xffff)
#define _NL_CTYPE_CLASS 0
#define _NL_CTYPE_TOUPPER 1
#define _NL_CTYPE_TOLOWER 3
__locale_t __newlocale(int category_mask, const char *locale, locale_t base)
__THROW
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment