>> 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!