mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-12 05:15:24 +08:00
libc.c: Include xlocale.h under macOS
This commit is contained in:
parent
c959bcbb57
commit
c53a494f52
@ -8,6 +8,11 @@
|
|||||||
#include <term.h>
|
#include <term.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
// LC_GLOBAL_LOCALE and locale_t are in xlocale.h on macOS
|
||||||
|
#ifdef __APPLE__
|
||||||
|
#include <xlocale.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#define UNUSED(x) (void)(x)
|
#define UNUSED(x) (void)(x)
|
||||||
|
|
||||||
size_t C_MB_CUR_MAX() { return MB_CUR_MAX; }
|
size_t C_MB_CUR_MAX() { return MB_CUR_MAX; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user