From cd99516a897c60cebf09ebc18448e4d224673bea Mon Sep 17 00:00:00 2001 From: vincents Date: Thu, 16 Feb 2006 14:34:59 +0000 Subject: [PATCH] if a package defines UseCThreads in its uses options, the cthreads unit will be add to the uses clause of new projects and applications and to lazarus itself. git-svn-id: trunk@8744 - --- ide/lazarus.pp | 3 +++ ide/project.pp | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/ide/lazarus.pp b/ide/lazarus.pp index f58371c71c..e8790476d8 100644 --- a/ide/lazarus.pp +++ b/ide/lazarus.pp @@ -44,6 +44,9 @@ program Lazarus; uses //cmem, + {$IFDEF UNIX}{$IFDEF UseCThreads} + cthreads, + {$ENDIF}{$ENDIF} {$IFDEF IDE_MEM_CHECK} MemCheck, {$ENDIF} diff --git a/ide/project.pp b/ide/project.pp index 52b7cd7c07..0d728204bb 100644 --- a/ide/project.pp +++ b/ide/project.pp @@ -4072,6 +4072,9 @@ begin +'{$mode objfpc}{$H+}'+le +le +'uses'+le + +' {$IFDEF UNIX}{$IFDEF UseCThreads}'+le + +' cthreads,'+le + +' {$ENDIF}{$ENDIF}'+le +' Classes'+le +' { add your units here };'+le +le @@ -4127,6 +4130,9 @@ begin +'{$mode objfpc}{$H+}'+le +le +'uses'+le + +' {$IFDEF UNIX}{$IFDEF UseCThreads}'+le + +' cthreads,'+le + +' {$ENDIF}{$ENDIF}'+le +' Interfaces, // this includes the LCL widgetset'+le +' Forms'+le +' { add your units here };'+le