[Lazarus] Why is there a define switch UseCThreads?

zeljko zeljko at holobit.net
Mon Nov 11 08:59:43 CET 2019


On 11/10/19 11:29 PM, Bo Berglund via lazarus wrote:
> I have ported a console application from Windows to Linux (Raspbian
> Buster) and I got to wonder about the check for a defined symbol
> appearing in the beginning of the code as produced by the Lazarus
> template:
> 
> uses
>    {$IFDEF UNIX}{$IFDEF UseCThreads}
>    cthreads,
>    {$ENDIF}{$ENDIF}
> 
> Would it not be enough to use this instead:
> uses
>    {$IFDEF UNIX}
>    cthreads,
>    {$ENDIF}

AFAIK, in lazarus trunk there's no more {$IFDEF UseCThreads} when 
creating new project, only {$IFDEF UNIX}cthreads{$ENDIF}

zeljko


More information about the lazarus mailing list