| Here is a list of Delphi Compiler version directives. I searched few places but none could give me complete list (A page on About.com was closest to completion) so I thought of creating this list and publishing it. | |
| SYMBOL | COMPILER VERSION |
| VER80 | Delphi 1 |
| VER90 | Delphi 2 |
| VER100 | Delphi 3 |
| VER120 | Delphi 4 |
| VER130 | Delphi 5 |
| VER140 | Delphi 6 |
| VER150 | Delphi 7 |
| VER160 | Delphi 8 |
| VER170 | Delphi 2005 |
| VER180 | Delphi 2006 |
| WIN32 | Indicates that the operating environment is the Win32 API. |
| CONSOLE | Indicates that an application is being compiled as a console application. |
| LINUX | Indicates that the operating environment is Linux. |
| CPU386 | Indicates that the CPU is an Intel 386 or better. |
| MSWINDOWS | Indicates that the operating environment is Windows. Use MSWINDOWS to test for any flavor of the Windows platform instead of WIN32. |
| CLR | Indicates the code will be compiled for the .NET platform. |