On Sun, Oct 11, 2009 at 11:47:01AM -0400, Andrew Haines wrote: > Marco van de Voort wrote: > > Last night I added binary index support to the CHM package, and > > regenerated all CHM packages, and packaged a new snapshot (nr 7) > > > Remarks, suggestions etc, can be directed to me. I assume Andrew is already > > updating LView :-) > > Hi, I have updated lhelp locally but I need to make a define so that > lhelp will not try to use the new methods if an older fpc is used. > > What define can I use? > > {$if (fpc_version=2) and (fpc_release>5) ((fpc_version=1) and > (fpc_release=5) and (fpc_patch>1))} ?
No, since 2.4.2 might have it. Untested: {$define donthaveit} {$ifndef ver2_2} {$if FPC_FULLVERSION > 204000} {$undef donthaveit} {$endif} {$endif} http://bugs.freepascal.org/view.php?id=11568 I don't know if the ifndef is necessary. -- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus