Skip to content

Commit 188e99e

Browse files
committed
Compilation fixes for Linux and old wx
1 parent 0827c08 commit 188e99e

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

src/editing_area.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@
4242
#include <wx/statbmp.h>
4343
#include <wx/stattext.h>
4444

45+
#if !wxCHECK_VERSION(3,1,0)
46+
#define CenterVertical() Center()
47+
#endif
48+
4549
#include <algorithm>
4650

4751

src/menus.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@
2525

2626
#include "menus.h"
2727

28+
#ifdef __WXOSX__
2829
#include "macos_helpers.h"
30+
#endif
31+
2932
#include "recent_files.h"
3033
#include "str_helpers.h"
3134

src/recent_files.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,9 @@ void RecentFilesCtrl::RefreshContent()
609609
#else
610610
wxBitmap icon(m_data->icons_cache->get_large(f.GetExt()));
611611
#endif
612-
wxVector<wxVariant> data{wxVariant(icon), text};
612+
wxVector<wxVariant> data;
613+
data.push_back(wxVariant(icon));
614+
data.push_back(text);
613615
AppendItem(data);
614616
}
615617
}

0 commit comments

Comments
 (0)