add missing SIOCSIFNAME from linux/sockios.h to ioctl.h
[musl] / src / internal / locale_impl.h
index db915ca..f5e4d9b 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef _LOCALE_IMPL_H
+#define _LOCALE_IMPL_H
+
 #include <locale.h>
 #include <stdlib.h>
 #include "libc.h"
@@ -30,3 +33,8 @@ const char *__lctrans_cur(const char *);
 #define CURRENT_LOCALE (__pthread_self()->locale)
 
 #define CURRENT_UTF8 (!!__pthread_self()->locale->cat[LC_CTYPE])
+
+#undef MB_CUR_MAX
+#define MB_CUR_MAX (CURRENT_UTF8 ? 4 : 1)
+
+#endif