[fpc-devel] Version 1 and Version 2 Defines

Marco van de Voort marcov at stack.nl
Tue Feb 14 22:40:18 CET 2006

> I'm pretty sure there are defines for the compiler version.. Something like;
>    {$define VER_2_0_2}
> for version 2.x of the compiler..
> What would I need to use to differentiate fpc 1.x code from fpc 2.x code?

  // your legacy 1.0 code here.
  // your 2.0+ code here.

More information about the fpc-devel mailing list