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:
Michael Wetherell 2006-05-28 17:36:30 +00:00
parent 2f0add5ae0
commit 5de959df83

View File

@ -105,6 +105,7 @@
#endif
#include <commctrl.h>
#include <pbt.h>
#include "wx/msw/missing.h"
@ -3829,7 +3830,9 @@ bool wxWindowMSW::HandlePower(WXWPARAM wParam,
case PBT_APMBATTERYLOW:
case PBT_APMPOWERSTATUSCHANGE:
case PBT_APMOEMEVENT:
#ifdef PBT_APMRESUMEAUTOMATIC
case PBT_APMRESUMEAUTOMATIC:
#endif
case PBT_APMRESUMECRITICAL:
evtType = wxEVT_NULL;
break;