From ab6114b4375ce044a6e781a478add79524690278 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 10 Apr 2024 14:29:13 +0200 Subject: Hopefully fix build with the older wxWidgets use for old macOS. --- src/wx/wx_util.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wx/wx_util.cc b/src/wx/wx_util.cc index 4af13b52a..4e6c03dca 100644 --- a/src/wx/wx_util.cc +++ b/src/wx/wx_util.cc @@ -45,9 +45,6 @@ LIBDCP_DISABLE_WARNINGS #include #include #include -#ifdef DCPOMATIC_OSX -#include -#endif LIBDCP_ENABLE_WARNINGS #include @@ -442,7 +439,10 @@ dcpomatic_setup_i18n() * which wxTranslations::SetLanguage will accept. */ auto const language_code = get_locale_value(kCFLocaleLanguageCode); - auto const info = wxUILocale::FindLanguageInfo(std_to_wx(language_code)); + /* Ideally this would be wxUILocale (as wxLocale is deprecated) but we want to keep this building + * with the old wxWidgets we use for the older macOS builds. + */ + auto const info = wxLocale::FindLanguageInfo(std_to_wx(language_code)); if (info) { translations->SetLanguage(info->GetCanonicalWithRegion()); } -- cgit v1.2.3