<p>Am 13.01.2015 19:56 schrieb "Werner Pamler" <<a href="mailto:werner.pamler@freenet.de">werner.pamler@freenet.de</a>>:<br>
><br>
> > In practice, I make no attempt to go earlier than FPC 2.2.4 (there are<br>
> > reasons for avoiding earlier compilers that do not need discussion)<br>
> > together with Lazarus 0.9.24 (fixes_0_9_24 from svn), which is about the<br>
> > earliest that has LCLVersion.<br>
><br>
> This is much more than what I want, I think I'll stop with Laz1.0/FPC 2.4.0. I see now that I can get the basic spreadsheet functionality to work fine with these versions, but the visual controls and demos are rather fragile - this shows the enormous progress the LCL has made since summer 2012.<br>
><br>
> Currently, I avoid using LCLVersion by having some conditional defines which have to be activated in order to compile with old versions, and in the wiki page there is some documentation of these defines. It's not perfect, but provides at least a way to go.</p>
<p>Maybe you can use two units for compatibility: one (e.g. FPCFixes) for the non visual parts that solely relies on FPC provided functionality. There you can use FPC_VERSION and friends to determine the compiler. The other unit (e.g. LazFixes) is only used for the visual components and thus can use LazVersion without problems.</p>
<p>Regards,<br>
Sven</p>