[fpc-devel] Version 1 and Version 2 Defines

Michael Preslar mike at lordlegacy.com
Tue Feb 14 22:55:48 CET 2006


>> What would I need to use to differentiate fpc 1.x code from fpc 2.x code?
> 
> {$IFDEF VER1_0}
>   // your legacy 1.0 code here.
> {$else}
>   // your 2.0+ code here.
> {$endif}

Thanks to Marco and Felipe for the quick answer!



More information about the fpc-devel mailing list