summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-04-10 14:29:13 +0200
committerCarl Hetherington <cth@carlh.net>2024-04-10 14:29:13 +0200
commitab6114b4375ce044a6e781a478add79524690278 (patch)
treedc10fe08563297acbec886ed7f297a880290ae7d
parent35e479a49b36cb09880d3171795d39c32a498bcc (diff)
Hopefully fix build with the older wxWidgets use for old macOS.
-rw-r--r--src/wx/wx_util.cc8
1 files 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 <wx/sizer.h>
#include <wx/spinctrl.h>
#include <wx/splash.h>
-#ifdef DCPOMATIC_OSX
-#include <wx/uilocale.h>
-#endif
LIBDCP_ENABLE_WARNINGS
#include <boost/thread.hpp>
@@ -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());
}