From c53a494f52d03269dc4712f01cba8de38cdd6474 Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Thu, 1 Feb 2024 13:45:11 -0600 Subject: [PATCH] libc.c: Include xlocale.h under macOS --- src/libc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libc.c b/src/libc.c index adef2ef84..cd4dc3946 100644 --- a/src/libc.c +++ b/src/libc.c @@ -8,6 +8,11 @@ #include #include +// LC_GLOBAL_LOCALE and locale_t are in xlocale.h on macOS +#ifdef __APPLE__ +#include +#endif + #define UNUSED(x) (void)(x) size_t C_MB_CUR_MAX() { return MB_CUR_MAX; }