]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/power.cpp
Fixed filename in wxOSX-Cocoa's file dialog using extension of wrong file type.
[wxWidgets.git] / src / msw / power.cpp
index 83819c38fb15a0e381ed5c9bc98446142207e40c..9b147e17dd5daff218a75d0ed3b27753d6e84d55 100644 (file)
@@ -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)
@@ -46,19 +48,22 @@ static inline bool wxGetPowerStatus(SYSTEM_POWER_STATUS *sps)
 {
     if ( !::GetSystemPowerStatus(sps) )
     {
-        wxLogLastError(_T("GetSystemPowerStatus()"));
+        wxLogLastError(wxT("GetSystemPowerStatus()"));
         return false;
     }
 
     return true;
 }
 
+#endif
+
 // ============================================================================
 // implementation
 // ============================================================================
 
 wxPowerType wxGetPowerType()
 {
+#if !defined(__WINCE_STANDARDSDK__)
     SYSTEM_POWER_STATUS sps;
     if ( wxGetPowerStatus(&sps) )
     {
@@ -71,17 +76,19 @@ wxPowerType wxGetPowerType()
                 return wxPOWER_SOCKET;
 
             default:
-                wxLogDebug(_T("Unknown ACLineStatus=%u"), sps.ACLineStatus);
+                wxLogDebug(wxT("Unknown ACLineStatus=%u"), sps.ACLineStatus);
             case 255:
                 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;
 }