Build fix for wx2.x
This commit is contained in:
parent
69c7f79e92
commit
c30ce554ef
|
@ -20,8 +20,13 @@ extern "C" {
|
||||||
#include "../gb/gbPrinter.h"
|
#include "../gb/gbPrinter.h"
|
||||||
#include "../gba/agbprint.h"
|
#include "../gba/agbprint.h"
|
||||||
|
|
||||||
|
#if (wxMAJOR_VERSION < 3)
|
||||||
#define GetXRCDialog(n) \
|
#define GetXRCDialog(n) \
|
||||||
dynamic_cast<wxDialog*>(FindWindowByName(n))
|
wxStaticCast(wxGetApp().frame->FindWindow(XRCID(n)), wxDialog)
|
||||||
|
#else
|
||||||
|
#define GetXRCDialog(n) \
|
||||||
|
wxStaticCast(wxGetApp().frame->FindWindowByName(n), wxDialog)
|
||||||
|
#endif
|
||||||
|
|
||||||
bool cmditem_lt(const struct cmditem &cmd1, const struct cmditem &cmd2)
|
bool cmditem_lt(const struct cmditem &cmd1, const struct cmditem &cmd2)
|
||||||
{
|
{
|
||||||
|
|
|
@ -43,8 +43,13 @@ static void mark_recursive(wxWindowBase *w)
|
||||||
mark_recursive(*ch);
|
mark_recursive(*ch);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if (wxMAJOR_VERSION < 3)
|
||||||
#define GetXRCDialog(n) \
|
#define GetXRCDialog(n) \
|
||||||
wxStaticCast(wxGetApp().frame->FindWindowByName(n), wxDialog)
|
wxStaticCast(wxGetApp().frame->FindWindow(XRCID(n)), wxDialog)
|
||||||
|
#else
|
||||||
|
#define GetXRCDialog(n) \
|
||||||
|
wxStaticCast(wxGetApp().frame->FindWindowByName(n), wxDialog)
|
||||||
|
#endif
|
||||||
|
|
||||||
// Event handlers must be methods of wxEvtHandler-derived objects
|
// Event handlers must be methods of wxEvtHandler-derived objects
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue