LCL: Enable building Darwin for PPC and PPC64. Issue #37987, patch from Alfred.

git-svn-id: trunk@64077 -
This commit is contained in:
juha 2020-10-25 17:20:42 +00:00
parent 26dff51384
commit 93df80a1da
3 changed files with 6 additions and 4 deletions

View File

@ -12,8 +12,8 @@
unit CarbonBars;
{$mode objfpc}{$H+}
{$IFNDEF cpui386}
{$ERROR only cpu i386 is supported}
{$IFNDEF cpu32}
{$ERROR only 32 bit cpu is supported}
{$ENDIF}
interface

View File

@ -22,8 +22,8 @@ unit Interfaces;
{$IFNDEF CARBON}
{$ERROR wrong interfaces source}
{$ENDIF}
{$IFNDEF cpui386}
{$ERROR only cpu i386 is supported}
{$IFNDEF cpu32}
{$ERROR only 32 bit cpu is supported}
{$ENDIF}
interface

View File

@ -543,6 +543,7 @@ begin
else
wnd := nil;
{$ifndef CPUPOWERPC}
if (theEvent.type_ = NSKeyDown)
and not (win.firstResponder.conformsToProtocol(objcprotocol(NSTextInputClientProtocol))) then
begin
@ -553,6 +554,7 @@ begin
end;
inputctx.handleEvent(theEvent);
end;
{$endif}
cb.KeyEvBefore(theEvent, allowcocoa);
if allowcocoa then