diff --git a/src/locale.cpp b/src/locale.cpp index 4bd77cac..f75585cf 100644 --- a/src/locale.cpp +++ b/src/locale.cpp @@ -18,7 +18,20 @@ #include "cstring" #include "cwctype" #include "__sso_allocator" +#ifdef __MINGW32__ +#define iswctype_l _iswctype_l +#define strcoll_l _strcoll_l +#define strftime_l _strftime_l +#define strxfrm_l _strxfrm_l +#define tolower_l _tolower_l +#define toupper_l _toupper_l +#define towlower_l _towlower_l +#define towupper_l _towupper_l +#define wcscoll_l _wcscoll_l +#define wcsxfrm_l _wcsxfrm_l +#else #include +#endif #include _LIBCPP_BEGIN_NAMESPACE_STD