[fpc-pascal] Windows unit and SyncObjs unit clash
Michael Van Canneyt
michael at freepascal.org
Wed Mar 26 13:39:00 CET 2008
On Wed, 26 Mar 2008, Graeme Geldenhuys wrote:
> On 26/03/2008, Michael Van Canneyt <michael at freepascal.org> wrote:
> > Yes, use fully qualified names.
> > windows.tcriticalsection.
> > syncobjs.tcriticalsection.
> Why doesn't Delphi compiler complain about it? A quick search
> revealed that Delphi's Windows.pas unit doesn't contain a
> TCriticalSection type definition, so why does FPC's Windows.pas unit?
> Why must FPC have two TCriticalSection type definitions?
It was translated automatically with the h2pas tool, probably with the -t
option, which prepends a T to all types. For backwards compatibility we
cannot revert this.
More information about the fpc-pascal