mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00:00
libc.c: Include xlocale.h under macOS
This commit is contained in:
parent
c959bcbb57
commit
c53a494f52
1 changed files with 5 additions and 0 deletions
|
@ -8,6 +8,11 @@
|
|||
#include <term.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)
|
||||
|
||||
size_t C_MB_CUR_MAX() { return MB_CUR_MAX; }
|
||||
|
|
Loading…
Reference in a new issue