From be31964c2e945ee3fcffbda27de2a20ea7d524af Mon Sep 17 00:00:00 2001 From: Lukas Werling Date: Sun, 4 Feb 2018 16:20:38 +0100 Subject: [PATCH] Fix Mac build error --- src/gui/C4StartupAboutDlg.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/C4StartupAboutDlg.cpp b/src/gui/C4StartupAboutDlg.cpp index dc931f898..5d51b0416 100644 --- a/src/gui/C4StartupAboutDlg.cpp +++ b/src/gui/C4StartupAboutDlg.cpp @@ -267,8 +267,11 @@ C4StartupAboutDlg::C4StartupAboutDlg() : C4StartupDlg(LoadResStr("IDS_DLG_ABOUT" DrawPersonList(C4StartupAboutContributors, contributors, caContributors.GetFromTop(caContributors.GetHeight())); + // FIXME: K_S is not defined for Cocoa builds. +#ifndef USE_COCOA keySaveCredits = std::make_unique(C4KeyCodeEx(K_S, KEYS_Control), "StartupAboutSaveCredits", KEYSCOPE_Gui, new C4GUI::DlgKeyCB(*this, &C4StartupAboutDlg::SaveCredits), C4CustomKey::PRIO_CtrlOverride); +#endif } C4StartupAboutDlg::~C4StartupAboutDlg() = default;