[fpc-pascal] Re: Re: WinCE / Win32 compilation

2010-10-16 Thread Uffe Kousgaard
Sven Barth pascaldra...@googlemail.com wrote in 
message

 TCriticalSection is a WinAPI struct if you include the unit Windows.

OK, that explains. In Delphi the WinAPI struct is called 
TRTLCriticalSection. So, no name clashing.



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Re: Re: WinCE / Win32 compilation

2010-10-16 Thread Matt Emson
On 16 Oct 2010, at 14:23, Uffe Kousgaard u...@routeware.dk wrote:

 Sven Barth pascaldra...@googlemail.com wrote in 
 message
 
 TCriticalSection is a WinAPI struct if you include the unit Windows.

Appart from unit ordering (which is a shaky way of reliably resolving things), 
you could always qualify the name with the unit prefix too:

var cs: SyncObjs.TCriticalSection;

This would universally work across Delphi and FPC and unit order would not 
matter. 

Sent from my iPhone___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal