From 0961e49919c12ec80b2dd1725c28bed046e30097 Mon Sep 17 00:00:00 2001 From: pierre Date: Tue, 14 May 2019 04:31:36 +0000 Subject: [PATCH] Add new files required to fix RTL compilation for macos target git-svn-id: trunk@42061 - --- .gitattributes | 2 + rtl/macos/classes.pp | 46 +++++++++++++++++++++++ rtl/macos/tthread.inc | 86 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 134 insertions(+) create mode 100644 rtl/macos/classes.pp create mode 100644 rtl/macos/tthread.inc diff --git a/.gitattributes b/.gitattributes index ac27af9ccd..3e9d983f61 100644 --- a/.gitattributes +++ b/.gitattributes @@ -9884,6 +9884,7 @@ rtl/macos/MPWmake -text rtl/macos/Makefile svneol=native#text/plain rtl/macos/Makefile.fpc svneol=native#text/plain rtl/macos/README.txt svneol=native#text/plain +rtl/macos/classes.pp svneol=native#text/plain rtl/macos/dos.pp svneol=native#text/plain rtl/macos/macos.pp svneol=native#text/plain rtl/macos/macostp.inc svneol=native#text/plain @@ -9898,6 +9899,7 @@ rtl/macos/sysos.inc svneol=native#text/plain rtl/macos/sysosh.inc svneol=native#text/plain rtl/macos/system.pp svneol=native#text/plain rtl/macos/sysutils.pp svneol=native#text/plain +rtl/macos/tthread.inc svneol=native#text/plain rtl/mips/cpuh.inc svneol=native#text/plain rtl/mips/int64p.inc svneol=native#text/plain rtl/mips/makefile.cpu svneol=native#text/plain diff --git a/rtl/macos/classes.pp b/rtl/macos/classes.pp new file mode 100644 index 0000000000..3bc526e6a6 --- /dev/null +++ b/rtl/macos/classes.pp @@ -0,0 +1,46 @@ +{ + This file is part of the Free Component Library (FCL) + Copyright (c) 1999-2000 by Michael Van Canneyt and Florian Klaempfl + + Classes unit for BeOS + + See the file COPYING.FPC, included in this distribution, + for details about the copyright. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + **********************************************************************} + +{$mode objfpc} + +{ determine the type of the resource/form file } +{$define Win16Res} + +unit Classes; + +interface + +uses + sysutils, + rtlconsts, + types, + typinfo, + sortbase; + +{$i classesh.inc} + +implementation + +{ OS - independent class implementations are in /inc directory. } +{$i classes.inc} + + +initialization + CommonInit; + +finalization + CommonCleanup; + +end. diff --git a/rtl/macos/tthread.inc b/rtl/macos/tthread.inc new file mode 100644 index 0000000000..24e7e37f19 --- /dev/null +++ b/rtl/macos/tthread.inc @@ -0,0 +1,86 @@ +{ + This file is part of the Free Component Library (FCL) + Copyright (c) 1999-2000 by the Free Pascal development team + + See the file COPYING.FPC, included in this distribution, + for details about the copyright. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + **********************************************************************} +{****************************************************************************} +{* TThread *} +{****************************************************************************} + + +procedure TThread.CallOnTerminate; + +begin +end; + + +function TThread.GetPriority: TThreadPriority; + +begin + GetPriority:=tpNormal; +end; + + +procedure TThread.SetPriority(Value: TThreadPriority); + +begin +end; + + +procedure TThread.SetSuspended(Value: Boolean); + +begin +end; + + +procedure TThread.DoTerminate; + +begin +end; + + +procedure TThread.SysCreate(CreateSuspended: Boolean; const StackSize: SizeUInt); + +begin + {IsMultiThread := TRUE; } +end; + + +procedure TThread.SysDestroy; + +begin +end; + + +procedure TThread.Resume; + +begin +end; + + +procedure TThread.Suspend; + +begin +end; + + +procedure TThread.Terminate; + +begin +end; + + +function TThread.WaitFor: Integer; + +begin + WaitFor:=0; +end; + +