Skip to content

Commit 03ebbe9

Browse files
committed
Fixed build on non-macOS platforms
Signed-off-by: Eran Ifrah <eran@codelite.org>
1 parent 952df0d commit 03ebbe9

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

LiteEditor/app.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -896,6 +896,7 @@ bool CodeLiteApp::IsSingleInstance(const wxCmdLineParser& m_parser)
896896
return true;
897897
}
898898

899+
#ifdef __WXMAC__
899900
void CodeLiteApp::MacOpenFile(const wxString& fileName)
900901
{
901902
switch (FileExtManager::GetType(fileName)) {
@@ -907,6 +908,7 @@ void CodeLiteApp::MacOpenFile(const wxString& fileName)
907908
break;
908909
}
909910
}
911+
#endif
910912

911913
void CodeLiteApp::MSWReadRegistry()
912914
{

LiteEditor/app.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ class CodeLiteApp : public wxApp
4949
void SetParserPaths(const wxArrayString& parserPaths) { this->m_parserPaths = parserPaths; }
5050
const wxArrayString& GetParserPaths() const { return m_parserPaths; }
5151

52+
#ifdef __WXMAC__
5253
void MacOpenFile(const wxString& fileName) override;
54+
#endif
5355

5456
void SetStartedInDebuggerMode(bool startedInDebuggerMode) { this->m_startedInDebuggerMode = startedInDebuggerMode; }
5557
bool IsStartedInDebuggerMode() const { return m_startedInDebuggerMode; }

0 commit comments

Comments
 (0)