X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/355debca0650f70aa8ed4803b2ebc45541e03d9f..b5b208a1796ecf1b9ab267d200705b4f3b4d10e3:/src/common/powercmn.cpp diff --git a/src/common/powercmn.cpp b/src/common/powercmn.cpp index 7e5cbcc65b..c71b9171bd 100644 --- a/src/common/powercmn.cpp +++ b/src/common/powercmn.cpp @@ -34,10 +34,12 @@ // ============================================================================ #ifdef wxHAS_POWER_EVENTS - DEFINE_EVENT_TYPE(wxEVT_POWER_SUSPENDING) - DEFINE_EVENT_TYPE(wxEVT_POWER_SUSPENDED) - DEFINE_EVENT_TYPE(wxEVT_POWER_SUSPEND_CANCEL) - DEFINE_EVENT_TYPE(wxEVT_POWER_RESUME) + wxDEFINE_EVENT( wxEVT_POWER_SUSPENDING, wxPowerEvent ); + wxDEFINE_EVENT( wxEVT_POWER_SUSPENDED, wxPowerEvent ); + wxDEFINE_EVENT( wxEVT_POWER_SUSPEND_CANCEL, wxPowerEvent ); + wxDEFINE_EVENT( wxEVT_POWER_RESUME, wxPowerEvent ); + + IMPLEMENT_DYNAMIC_CLASS(wxPowerEvent, wxEvent) #endif // provide stubs for the systems not implementing these functions