Skip to content

Commit 076c2f8

Browse files
committed
Compilation fixes for Linux and old wx
1 parent 266d1ec commit 076c2f8

2 files changed

Lines changed: 7 additions & 0 deletions

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

0 commit comments

Comments
 (0)