wince: fix compilation from Henry Vermaak

git-svn-id: trunk@17034 -
This commit is contained in:
paul 2008-10-17 16:45:32 +00:00
parent f3bb14bdb6
commit a50363f995

View File

@ -83,13 +83,13 @@ begin
end;
function UTF8ToConsole(const s: string): string;
{$ifdef Windows}
{$ifdef MSWindows}
var
Dst: PChar;
{$endif}
begin
Result := UTF8ToSys(s);
{$ifdef Windows}
{$ifdef MSWindows}
Dst := AllocMem((Length(Result) + 1) * SizeOf(Char));
if CharToOEM(PChar(Result), Dst) then
Result := StrPas(Dst);