diff --git a/include/wx/private/localeset.h b/include/wx/private/localeset.h index 769af1a1ab..b51bebcd0d 100644 --- a/include/wx/private/localeset.h +++ b/include/wx/private/localeset.h @@ -51,7 +51,7 @@ private: // under the other platforms currently). inline void wxEnsureLocaleIsCompatibleWithCRT() { -#if defined(__WXOSX__) +#if defined(__DARWIN__) // In OS X and iOS, wchar_t CRT functions convert to char* and fail under // some locales. The safest fix is to set LC_CTYPE to UTF-8 to ensure that // they can handle any input. @@ -61,7 +61,7 @@ inline void wxEnsureLocaleIsCompatibleWithCRT() // // See https://stackoverflow.com/questions/11713745/why-does-the-printf-family-of-functions-care-about-locale setlocale(LC_CTYPE, "UTF-8"); -#endif // defined(__WXOSX__) +#endif // defined(__DARWIN__) } #endif // _WX_PRIVATE_LOCALESET_H_