mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 22:19:18 +02:00
LCL: Enable building Darwin for PPC and PPC64. Issue #37987, patch from Alfred.
git-svn-id: trunk@64077 -
This commit is contained in:
parent
26dff51384
commit
93df80a1da
@ -12,8 +12,8 @@
|
|||||||
unit CarbonBars;
|
unit CarbonBars;
|
||||||
|
|
||||||
{$mode objfpc}{$H+}
|
{$mode objfpc}{$H+}
|
||||||
{$IFNDEF cpui386}
|
{$IFNDEF cpu32}
|
||||||
{$ERROR only cpu i386 is supported}
|
{$ERROR only 32 bit cpu is supported}
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
@ -22,8 +22,8 @@ unit Interfaces;
|
|||||||
{$IFNDEF CARBON}
|
{$IFNDEF CARBON}
|
||||||
{$ERROR wrong interfaces source}
|
{$ERROR wrong interfaces source}
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
{$IFNDEF cpui386}
|
{$IFNDEF cpu32}
|
||||||
{$ERROR only cpu i386 is supported}
|
{$ERROR only 32 bit cpu is supported}
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
@ -543,6 +543,7 @@ begin
|
|||||||
else
|
else
|
||||||
wnd := nil;
|
wnd := nil;
|
||||||
|
|
||||||
|
{$ifndef CPUPOWERPC}
|
||||||
if (theEvent.type_ = NSKeyDown)
|
if (theEvent.type_ = NSKeyDown)
|
||||||
and not (win.firstResponder.conformsToProtocol(objcprotocol(NSTextInputClientProtocol))) then
|
and not (win.firstResponder.conformsToProtocol(objcprotocol(NSTextInputClientProtocol))) then
|
||||||
begin
|
begin
|
||||||
@ -553,6 +554,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
inputctx.handleEvent(theEvent);
|
inputctx.handleEvent(theEvent);
|
||||||
end;
|
end;
|
||||||
|
{$endif}
|
||||||
|
|
||||||
cb.KeyEvBefore(theEvent, allowcocoa);
|
cb.KeyEvBefore(theEvent, allowcocoa);
|
||||||
if allowcocoa then
|
if allowcocoa then
|
||||||
|
Loading…
Reference in New Issue
Block a user