]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/power.cpp
correction to last commit: don't test unsetenv() return value, it's void under Darwin
[wxWidgets.git] / src / msw / power.cpp
index cf96885bbb9c31675195314ff517fdd5c91cf74d..83819c38fb15a0e381ed5c9bc98446142207e40c 100644 (file)
 #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;
 }
-
-