> On 8/13/06, Darius Blaszijk <[EMAIL PROTECTED]> wrote:
> I have the same issue... Chicken and Egg situation.  Changes have been
> added to FPCUnit after FPC 2.0.2, but I need them now in Lazarus.  I
> applied a few patches, but most of them I am holding off until after
> the the FPC 2.0.4 release.  I figured the IFDEF's will be getting ugly
> in Lazarus, so only use the locally until 2.0.4.
> 
> Anyway, I did this in our local projects and then use the FPC202 or
> FPC202OrAbove defines...
> 
>   {$if defined(ver1) or (defined(ver2_0) and (fpc_patch<2))}
>     {$fatal tiOPF2 requires at least FPC 2.0.2}
>   {$ELSEIF (defined(ver2_0) and (fpc_patch=2))}
>     {$DEFINE FPC202}
>   {$ELSE}
>     {$DEFINE FPC202OrAbove}
>   {$IFEND}

Note that the ver1 check is afaik useless since ver1 doesn't support {$if
defined

_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to