diff options
author | Kostas Nakos | 2006-10-08 18:15:18 +0000 |
---|---|---|
committer | Kostas Nakos | 2006-10-08 18:15:18 +0000 |
commit | 4524b49872b238db92922dbe961a8f1aa8430178 (patch) | |
tree | a4de68a8132e22377687a6b005446d757cbe14ab /backends/platform/wince/CEDevice.cpp | |
parent | 1307f597a69ac913b6045a9dfa8e07221e021cde (diff) | |
download | scummvm-rg350-4524b49872b238db92922dbe961a8f1aa8430178.tar.gz scummvm-rg350-4524b49872b238db92922dbe961a8f1aa8430178.tar.bz2 scummvm-rg350-4524b49872b238db92922dbe961a8f1aa8430178.zip |
Initial commit of the wince-gcc re-port
svn-id: r24212
Diffstat (limited to 'backends/platform/wince/CEDevice.cpp')
-rw-r--r-- | backends/platform/wince/CEDevice.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/backends/platform/wince/CEDevice.cpp b/backends/platform/wince/CEDevice.cpp index ddf1e9df96..495ba1b274 100644 --- a/backends/platform/wince/CEDevice.cpp +++ b/backends/platform/wince/CEDevice.cpp @@ -64,6 +64,11 @@ static HANDLE (WINAPI* _SetPowerRequirement)(PVOID,int,ULONG,PVOID,ULONG) = NULL static DWORD (WINAPI* _ReleasePowerRequirement)(HANDLE) = NULL; static HANDLE _hPowerManagement = NULL; static DWORD _lastTime = 0; +#ifdef __GNUC__ +extern "C" void WINAPI SystemIdleTimerReset(void); +#define SPI_GETPLATFORMTYPE 257 +#endif + #define TIMER_TRIGGER 9000 @@ -82,7 +87,7 @@ void CEDevice::init() { } if (_SetPowerRequirement) - _hPowerManagement = _SetPowerRequirement(TEXT("BKL1:"), 0, 1, NULL, 0); + _hPowerManagement = _SetPowerRequirement((PVOID) TEXT("BKL1:"), 0, 1, (PVOID) NULL, 0); _lastTime = GetTickCount(); } @@ -154,7 +159,7 @@ bool CEDevice::isSmartphone() { BOOL result = SystemParametersInfo(SPI_GETPLATFORMTYPE, sizeof(platformType), platformType, 0); if (!result && GetLastError() == ERROR_ACCESS_DENIED) return true; - return (wcsnicmp(platformType, TEXT("SmartPhone"), 10) == 0); + return (_wcsnicmp(platformType, TEXT("SmartPhone"), 10) == 0); #endif } |