From 5de959df83d3e9d5d1be269183e9ce3d343abac2 Mon Sep 17 00:00:00 2001 From: Michael Wetherell Date: Sun, 28 May 2006 17:36:30 +0000 Subject: [PATCH] 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 --- src/msw/window.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/msw/window.cpp b/src/msw/window.cpp index ac67acc1a7..a28f4c0901 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -105,6 +105,7 @@ #endif #include +#include #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; -- 2.45.2