Compile fixes: gcc seems to need pbt.h including, and PBT_APMRESUMEAUTOMATIC
isn't in the headers for most compilers (the other PBT_* macros are there). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39382 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -105,6 +105,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <commctrl.h>
|
#include <commctrl.h>
|
||||||
|
#include <pbt.h>
|
||||||
|
|
||||||
#include "wx/msw/missing.h"
|
#include "wx/msw/missing.h"
|
||||||
|
|
||||||
@@ -3829,7 +3830,9 @@ bool wxWindowMSW::HandlePower(WXWPARAM wParam,
|
|||||||
case PBT_APMBATTERYLOW:
|
case PBT_APMBATTERYLOW:
|
||||||
case PBT_APMPOWERSTATUSCHANGE:
|
case PBT_APMPOWERSTATUSCHANGE:
|
||||||
case PBT_APMOEMEVENT:
|
case PBT_APMOEMEVENT:
|
||||||
|
#ifdef PBT_APMRESUMEAUTOMATIC
|
||||||
case PBT_APMRESUMEAUTOMATIC:
|
case PBT_APMRESUMEAUTOMATIC:
|
||||||
|
#endif
|
||||||
case PBT_APMRESUMECRITICAL:
|
case PBT_APMRESUMECRITICAL:
|
||||||
evtType = wxEVT_NULL;
|
evtType = wxEVT_NULL;
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user