[fpc-pascal] Windows unit and SyncObjs unit clash

Pete Cervasio cervasio at airmail.net
Wed Mar 26 15:15:04 CET 2008


On Wednesday 26 March 2008 08:51:53 Graeme Geldenhuys wrote:
> On 26/03/2008, Marco van de Voort <marcov at stack.nl> wrote:
> > Hmm, didn't older (<6) versions simply have this, and did synobjs get
> >  introduced later? In that case, if Delphi can break compat, so can we.
>
> I think I still have my copy of Delphi 5 lying around. If I can find
> it, I'll see if TCriticalSection is in that Windows unit and if
> SyncObjs unit existed in v5.

Hi, Graeme.

I've got D5 installed under Wine here, and the only thing found when grepping 
for tcriticalsection in the ./Source/Rtl/Win directory is the 
function "SetCriticalSectionSpinCount".

The SyncObjs unit does exist in D5.

~/.wine/drive_c/Program Files/Borland/Delphi5 $ find . -iname 'syncobj*'
./Lib/Debug/syncobjs.dcu
./Lib/syncobjs.dcu
./Source/Vcl/syncobjs.pas

Best regards,
Pete C.



More information about the fpc-pascal mailing list