1 #ifndef slic3r_wxinit_hpp_ 2 #define slic3r_wxinit_hpp_ 3 4 #include <wx/wx.h> 5 #include <wx/intl.h> 6 #include <wx/html/htmlwin.h> 7 8 // Perl redefines a _ macro, so we undef this one 9 #undef _ 10 11 // We do want to use translation however, so define it as __ so we can do a find/replace 12 // later when we no longer need to undef _ 13 #define __(s) wxGetTranslation((s)) 14 15 // legacy macros 16 // https://wiki.wxwidgets.org/EventTypes_and_Event-Table_Macros 17 #ifndef wxEVT_BUTTON 18 #define wxEVT_BUTTON wxEVT_COMMAND_BUTTON_CLICKED 19 #endif 20 21 #ifndef wxEVT_HTML_LINK_CLICKED 22 #define wxEVT_HTML_LINK_CLICKED wxEVT_COMMAND_HTML_LINK_CLICKED 23 #endif 24 25 #endif 26