X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7325e21c4fda06b0f4a2ea5fd72169bae06a0d19..b3e5d05894c018ea50d92de6249aa09d211e2ef7:/src/msw/power.cpp diff --git a/src/msw/power.cpp b/src/msw/power.cpp index cf96885bbb..83819c38fb 100644 --- a/src/msw/power.cpp +++ b/src/msw/power.cpp @@ -30,6 +30,14 @@ #include "wx/power.h" #include "wx/msw/private.h" +#ifdef __WXWINCE__ + typedef SYSTEM_POWER_STATUS_EX SYSTEM_POWER_STATUS; + BOOL GetSystemPowerStatus(SYSTEM_POWER_STATUS *status) + { + return GetSystemPowerStatusEx(status, TRUE); + } +#endif + // ---------------------------------------------------------------------------- // helper functions // ---------------------------------------------------------------------------- @@ -94,5 +102,3 @@ wxBatteryState wxGetBatteryState() return wxBATTERY_UNKNOWN_STATE; } - -