X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7325e21c4fda06b0f4a2ea5fd72169bae06a0d19..ce7208d49d5ce2ca1dc0b3b83f14f1d04f29c4bf:/src/msw/power.cpp?ds=inline 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; } - -