toolchain
toolchain copied to clipboard
added locale.h and added more wide-char prototypes
Added <locale.h>. setlocale and localeconv are basically hard-coded to return the "C" locale. The llvm/libcxx #if 0'ing code; But there is no intention on implementing these functions.
I came up with this definition for mbstate_t. But this can be changed to any non-empty struct.
typedef struct {
int __count;
union {
wint_t __value;
unsigned char __bytes[sizeof(wint_t)];
};
} mbstate_t;