2010/9/15 Juha Manninen (gmail) <[email protected]>: > Question: why is there need for "UseCThreads" define. Isn't cthreads needed > always when using a *nix system? So, can I change the definition to : > > {$IFDEF UNIX} > cthreads, > {$ENDIF} > > If I now commit my code as it is, there will be complaints from people who run > the converter under Linux for example.
By default Lazarus is a single threaded application. Only if a lazarus packages that uses threads is used, the IDE needs to include the cthreads unit. Such packages add -dUseCThreads in their usage options (Open package, Options -> Usage -> Add options to dependent packages and projects -> Custom). So, no, it is not always needed, until now, only if a third party package requires it. I would think twice about making this change. Vincent -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
