]> git.saurik.com Git - wxWidgets.git/commitdiff
Compile fixes: gcc seems to need pbt.h including, and PBT_APMRESUMEAUTOMATIC
authorMichael Wetherell <mike.wetherell@ntlworld.com>
Sun, 28 May 2006 17:36:30 +0000 (17:36 +0000)
committerMichael Wetherell <mike.wetherell@ntlworld.com>
Sun, 28 May 2006 17:36:30 +0000 (17:36 +0000)
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

src/msw/window.cpp

index ac67acc1a749c700215d64957c340716dee5586b..a28f4c0901cc77285d157a2f6cc54229c15c5a64 100644 (file)
 #endif
 
 #include <commctrl.h>
 #endif
 
 #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_APMPOWERSTATUSCHANGE:
         case PBT_APMOEMEVENT:
         case PBT_APMBATTERYLOW:
         case PBT_APMPOWERSTATUSCHANGE:
         case PBT_APMOEMEVENT:
+#ifdef PBT_APMRESUMEAUTOMATIC
         case PBT_APMRESUMEAUTOMATIC:
         case PBT_APMRESUMEAUTOMATIC:
+#endif
         case PBT_APMRESUMECRITICAL:
             evtType = wxEVT_NULL;
             break;
         case PBT_APMRESUMECRITICAL:
             evtType = wxEVT_NULL;
             break;