LibC: Define locale_t as an poiter

A lot of ports seem to depend on this casting nullptr into locale_t
This commit is contained in:
2026-07-20 04:07:23 +03:00
parent 4df58c5155
commit 511ab7e99c
6 changed files with 108 additions and 82 deletions
@@ -7,10 +7,13 @@
__BEGIN_DECLS
#ifndef __locale_t_defined
#define __locale_t_defined 1
typedef enum { LOCALE_INVALID, LOCALE_POSIX, LOCALE_UTF8 } locale_t;
#endif
typedef enum { __ENC_ASCII, __ENC_UTF8 } __encoding_e;
struct __locale_t
{
const char* name;
__encoding_e encoding;
};
typedef struct __locale_t* locale_t;
__END_DECLS