-
Доброе время суток.
Интересует, где можно прочитать список Define-ов, с помощью которых определяются версии Delphi.
-
из JCL определитель.
{$IFDEF BORLAND} {$IFDEF KYLIX} {$I kylix.inc} // FPC incompatible stuff {$ELSE ~KYLIX}
{$DEFINE UNKNOWN_COMPILER_VERSION}
{$IFDEF VER80} {$DEFINE COMPILER1} {$DEFINE DELPHI1} {$DEFINE DELPHICOMPILER1} {$DEFINE RTL80_UP} {$UNDEF UNKNOWN_COMPILER_VERSION} {$ENDIF}
{$IFDEF VER90} {$DEFINE COMPILER2} {$DEFINE DELPHI2} {$DEFINE DELPHICOMPILER2} {$DEFINE RTL90_UP} {$UNDEF UNKNOWN_COMPILER_VERSION} {$ENDIF}
{$IFDEF VER93} {$DEFINE COMPILER2} {$DEFINE BCB1} {$DEFINE BCB} {$DEFINE RTL93_UP} {$UNDEF UNKNOWN_COMPILER_VERSION} {$ENDIF}
{$IFDEF VER100} {$DEFINE COMPILER3} {$DEFINE DELPHI3} {$DEFINE DELPHICOMPILER3} {$DEFINE RTL100_UP} {$UNDEF UNKNOWN_COMPILER_VERSION} {$ENDIF}
{$IFDEF VER110} {$DEFINE COMPILER35} {$DEFINE BCB3} {$DEFINE RTL110_UP} {$UNDEF UNKNOWN_COMPILER_VERSION} {$ENDIF}
{$IFDEF VER120} {$DEFINE COMPILER4} {$DEFINE DELPHI4} {$DEFINE DELPHICOMPILER4} {$DEFINE RTL120_UP} {$UNDEF UNKNOWN_COMPILER_VERSION} {$ENDIF}
{$IFDEF VER125} {$DEFINE COMPILER4} {$DEFINE BCB4} {$DEFINE BCB} {$DEFINE RTL125_UP} {$UNDEF UNKNOWN_COMPILER_VERSION} {$ENDIF}
{$IFDEF VER130} {$DEFINE COMPILER5} {$IFDEF BCB} {$DEFINE BCB5} {$ELSE} {$DEFINE DELPHI5} {$DEFINE DELPHICOMPILER5} {$ENDIF} {$DEFINE RTL130_UP} {$UNDEF UNKNOWN_COMPILER_VERSION} {$ENDIF}
{$IFDEF VER140} {$DEFINE COMPILER6} {$IFDEF BCB} {$DEFINE BCB6} {$ELSE} {$DEFINE DELPHI6} {$DEFINE DELPHICOMPILER6} {$ENDIF} {$DEFINE RTL140_UP} {$UNDEF UNKNOWN_COMPILER_VERSION} {$ENDIF}
{$IFDEF VER150} {$DEFINE COMPILER7} {$DEFINE DELPHI7} {$DEFINE DELPHICOMPILER7} {$DEFINE RTL150_UP} {$UNDEF UNKNOWN_COMPILER_VERSION} {$ENDIF}
{$IFDEF VER160} {$DEFINE BDS2} {$DEFINE BDS} {$IFDEF CLR} {$DEFINE CLR10} {$ENDIF CLR} {$DEFINE COMPILER8} {$DEFINE DELPHI8} {$DEFINE DELPHICOMPILER8} {$DEFINE RTL160_UP} {$UNDEF UNKNOWN_COMPILER_VERSION} {$ENDIF}
{$IFDEF VER170} {$DEFINE BDS3} {$DEFINE BDS} {$IFDEF CLR} {$DEFINE CLR11} {$ENDIF CLR} {$DEFINE COMPILER9} {$DEFINE DELPHI9} {$DEFINE DELPHI2005} // synonym to DELPHI9 {$DEFINE DELPHICOMPILER9} {$DEFINE RTL170_UP} {$UNDEF UNKNOWN_COMPILER_VERSION} {$ENDIF}
{$IFDEF VER180} {$DEFINE BDS} {$IFDEF CLR} {$DEFINE CLR11} {$ENDIF CLR} {$IFDEF VER185} {$DEFINE BDS5} {$DEFINE COMPILER11} {$IFDEF BCB} {$DEFINE BCB11} {$ELSE} {$DEFINE DELPHI11} {$DEFINE DELPHI2007} // synonym to DELPHI11 {$DEFINE DELPHICOMPILER11} {$ENDIF} {$DEFINE RTL185_UP} {$ELSE ~~VER185} {$DEFINE BDS4} {$DEFINE COMPILER10} {$IFDEF BCB} {$DEFINE BCB10} {$ELSE} {$DEFINE DELPHI10} {$DEFINE DELPHI2006} // synonym to DELPHI10 {$DEFINE DELPHICOMPILER10} {$ENDIF} {$DEFINE RTL180_UP} {$ENDIF ~VER185} {$UNDEF UNKNOWN_COMPILER_VERSION} {$ENDIF}
{$IFDEF VER190} // Delphi.NET 2007 {$DEFINE BDS} {$DEFINE BDS5} {$IFDEF CLR} {$DEFINE CLR20} {$ENDIF CLR} {$DEFINE COMPILER11} {$DEFINE DELPHI11} {$DEFINE DELPHI2007} // synonym to DELPHI10 {$DEFINE DELPHICOMPILER11} {$DEFINE RTL190_UP} {$UNDEF UNKNOWN_COMPILER_VERSION} {$ENDIF VER190}
{$IFDEF UNKNOWN_COMPILER_VERSION} // adjust for newer version (always use latest version) {$DEFINE BDS} {$DEFINE BDS5} {$DEFINE COMPILER11} {$DEFINE DELPHI11} {$DEFINE DELPHI2007} // synonym to DELPHI11 {$DEFINE DELPHICOMPILER11} {$DEFINE RTL185_UP} {$UNDEF UNKNOWN_COMPILER_VERSION} {$ENDIF}
{$ENDIF ~KYLIX}
{$IFDEF BCB} {$DEFINE CPPBUILDER} {$DEFINE BCBCOMPILER} {$ELSE ~BCB} {$DEFINE DELPHI} {$DEFINE DELPHICOMPILER} {$ENDIF ~BCB}
{$ENDIF BORLAND}
-
спасибо большое
|