Re: [Lazarus] Conditional code based on Lazarus/LCL version

2016-09-22 Thread Lars
On Thu, September 22, 2016 2:30 pm, Denis Kozlov wrote: > Hi, ... > P.S. Most of mailing list emails still don't arrive to gmail account, > I'll keep monitoring list archive. Are you sure they are not hidden in some tab, like social, or such. I don't use Gmail much, just as dummy accounts sometim

Re: [Lazarus] Conditional code based on Lazarus/LCL version

2016-09-22 Thread Mattias Gaertner
On Thu, 22 Sep 2016 22:25:23 +0100 Denis Kozlov wrote: > On 22/09/2016 22:02, Mattias Gaertner wrote: > > See unit lclversion. > > Thanks! Somehow I just couldn't find it. > > Is it theoretically possible to implement a compile time define for > Lazarus version? You can use it at compile ti

Re: [Lazarus] Conditional code based on Lazarus/LCL version

2016-09-22 Thread Denis Kozlov
On 22/09/2016 22:02, Mattias Gaertner wrote: See unit lclversion. Thanks! Somehow I just couldn't find it. Is it theoretically possible to implement a compile time define for Lazarus version? Perhaps an extra define that Lazarus passes to compiler automatically? Thanks, Denis -- __

Re: [Lazarus] Conditional code based on Lazarus/LCL version

2016-09-22 Thread Mattias Gaertner
On Thu, 22 Sep 2016 21:30:51 +0100 Denis Kozlov wrote: > Hi, > > Is there something like FPC_VERSION define but for Lazarus or LCL, e.g. > LAZARUS_VERSION? See unit lclversion. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http:

[Lazarus] Conditional code based on Lazarus/LCL version

2016-09-22 Thread Denis Kozlov
Hi, Is there something like FPC_VERSION define but for Lazarus or LCL, e.g. LAZARUS_VERSION? I need a way of programmatically determining which version of Lazarus or LCL is/was used to compile the program, preferably at compile time, but at run time could also be useful. P.S. Most of maili