[fpc-pascal] Windows unit and SyncObjs unit clash
Joao Morais
post at joaomorais.com.br
Wed Mar 26 15:55:32 CET 2008
Graeme Geldenhuys wrote:
>> For lower level stuff, you should use TRTLCriticalSection, never TCriticalSection.
>>
>> It has the advantage of being portable.
>>
>> I'm surprised you actually use the windows unit. That is Evil(tm).
>
> The code in question is the tiOPF project which is shared with Delphi
> & FPC users. They (Delphi users) are all out of luck with the
> cross-platform abilities of FPC, so we have to use what both compilers
> support. For Delphi, that would be the 'Windows' unit.
What about use uses Windows under ifndef fpc?
--
Joao Morais
More information about the fpc-pascal
mailing list