LCL-Win32: Support compilation with FPC 2.6.4. Will be merged to 1.8 fixes.

git-svn-id: trunk@56686 -
This commit is contained in:
juha 2017-12-10 16:02:25 +00:00
parent 2edba99094
commit 216afc7132
2 changed files with 8 additions and 1 deletions

View File

@ -1234,7 +1234,11 @@ procedure TWindowProcHelper.DoMsgChar(var WinResult: LResult);
begin
OrgCharCode := Word(WParam);
// Process surrogate pairs later
{$IF FPC_FULLVERSION>=30000}
if TCharacter.IsSurrogate(WideChar(OrgCharCode)) then
{$ELSE}
if False then
{$ENDIF}
WinProcess := True
// first send a IntfUTF8KeyPress to the LCL
// if the key was not handled send a CN_CHAR for AnsiChar<=#127

View File

@ -29,7 +29,10 @@ interface
}
uses
Windows, // keep as first
Classes, SysUtils, RtlConsts, ActiveX, MultiMon, CommCtrl, character,
Classes, SysUtils, RtlConsts, ActiveX, MultiMon, CommCtrl,
{$IF FPC_FULLVERSION>=30000}
character,
{$ENDIF}
// LCL
LCLPlatformDef, InterfaceBase, LCLIntf, LclProc, LCLType, LMessages,
Controls, Buttons, Forms, Dialogs, GraphMath, GraphType, StdCtrls,