X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dbc74bccc9d020281f2e1fcceb35323d45c91566..25c702609db6a749ffd5f3e659ec348e4aa3a3c8:/src/msw/power.cpp diff --git a/src/msw/power.cpp b/src/msw/power.cpp index 83819c38fb..e6b74936a2 100644 --- a/src/msw/power.cpp +++ b/src/msw/power.cpp @@ -30,6 +30,8 @@ #include "wx/power.h" #include "wx/msw/private.h" +#if !defined(__WINCE_STANDARDSDK__) + #ifdef __WXWINCE__ typedef SYSTEM_POWER_STATUS_EX SYSTEM_POWER_STATUS; BOOL GetSystemPowerStatus(SYSTEM_POWER_STATUS *status) @@ -53,12 +55,15 @@ static inline bool wxGetPowerStatus(SYSTEM_POWER_STATUS *sps) return true; } +#endif + // ============================================================================ // implementation // ============================================================================ wxPowerType wxGetPowerType() { +#if !defined(__WINCE_STANDARDSDK__) SYSTEM_POWER_STATUS sps; if ( wxGetPowerStatus(&sps) ) { @@ -76,12 +81,14 @@ wxPowerType wxGetPowerType() break; } } +#endif return wxPOWER_UNKNOWN; } wxBatteryState wxGetBatteryState() { +#if !defined(__WINCE_STANDARDSDK__) SYSTEM_POWER_STATUS sps; if ( wxGetPowerStatus(&sps) ) { @@ -99,6 +106,7 @@ wxBatteryState wxGetBatteryState() return wxBATTERY_CRITICAL_STATE; } } +#endif return wxBATTERY_UNKNOWN_STATE; }