home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 September / Chip_2001-09_cd1.bin / zkuste / delphi / kolekce / d56 / RMCTL.ZIP / CompilerDefines.INC < prev    next >
Text File  |  2001-06-22  |  4KB  |  155 lines

  1. {
  2.   This Compiler definination file was created to help describe different versions
  3.   of the Borland Compilers.  The verXX is what Borland uses to describe each
  4.   different version of the compiler.  With this in mind this file defines the following:
  5.  
  6.      BDx - where x is the version of delphi.  eg. BD5 would be defined for Delphi 5
  7.      BCBx - where x is the version of C++ Builder
  8.      DELPHI_COMPILER - is defined for all Delphi versions of the compiler
  9.      BCB_COMPILER - is defined for all C++ Builder versions of the compiler
  10.      Unknown_Version - is defined if no compiler version is correctly matched to a verXX
  11.      Dx_OR_HIGHER - where x is a Delphi version number.  Eg.  D4_OR_HIGHER would be
  12.                     defined for all versions of the compiler from D4 onwards.
  13.      BCBx_OR_HIGHER - where x is a C++ Builder version number.  Eg.  BCB4_OR_HIGHER would be
  14.                     defined for all versions of the compiler from BCB4 onwards.
  15.  
  16.  
  17.   The following is a quick reference to the verXX and the matching Borland product:
  18.  
  19.      Ver80  - Delphi 1
  20.      Ver90  - Delphi 2                           Ver93  - C++ Builder 1
  21.      Ver100 - Delphi 3                           Ver110 - C++ Builder 3
  22.      Ver120 - Delphi 4                           Ver125 - C++ Builder 4
  23.      Ver130 - Delphi 5                           Ver135 - C++ Builder 5
  24.      Ver140 - Delphi 6
  25.  
  26.   Starting with D2 all compilers define WIN32 for the Win32 platform.  I would expect
  27.   that a new define will appear with the addvent of Kylix.  Something like "LINUX"?
  28.  
  29.   D1 was the only 16-bit version of Delphi released.  The was never a 16-Bit version of BCB.
  30. }
  31.  
  32. {*$DEFINE rmDebug}
  33.  
  34. {$IFDEF WIN32}
  35.   {$DEFINE D2_OR_HIGHER}
  36. {$ENDIF}
  37.  
  38. {$DEFINE UNKNOWN_COMPILER}
  39. {$UNDEF RMVERSET}
  40.  
  41. {$IFDEF VER80} //DELPHI 1
  42.   {$DEFINE BD1}
  43.   {$DEFINE DELPHI_COMPILER}
  44.   {$UNDEF UNKNOWN_COMPILER}
  45.   {$DEFINE RMVERSET}
  46. {$ELSE}
  47.   {$IFNDEF RMVERSET}
  48.     {$DEFINE D1_OR_HIGHER}
  49.   {$ENDIF}
  50. {$ENDIF}
  51.  
  52. {$IFDEF VER90} //DELPHI 2
  53.   {$DEFINE BD2}
  54.   {$DEFINE DELPHI_COMPILER}
  55.   {$UNDEF UNKNOWN_COMPILER}
  56.   {$DEFINE RMVERSET}
  57. {$ELSE}
  58.   {$IFNDEF RMVERSET}
  59.     {$DEFINE D2_OR_HIGHER}
  60.   {$ENDIF}
  61. {$ENDIF}
  62.  
  63. {$IFDEF VER93} //BCB 1
  64.   {$DEFINE BCB1}
  65.   {$DEFINE BCB_COMPILER}
  66.   {$UNDEF UNKNOWN_COMPILER}
  67.   {$DEFINE RMVERSET}
  68. {$ELSE}
  69.   {$IFNDEF RMVERSET}
  70.     {$DEFINE BCB1_OR_HIGHER}
  71.   {$ENDIF}
  72. {$ENDIF}
  73.  
  74. {$IFDEF VER100} //DELPHI 3
  75.   {$DEFINE BD3}
  76.   {$DEFINE DELPHI_COMPILER}
  77.   {$UNDEF UNKNOWN_COMPILER}
  78.   {$DEFINE RMVERSET}
  79. {$ELSE}
  80.   {$IFNDEF RMVERSET}
  81.     {$DEFINE D3_OR_HIGHER}
  82.   {$ENDIF}
  83. {$ENDIF}
  84.  
  85. {$IFDEF VER110} //BCB 3
  86.   {$DEFINE BCB3}
  87.   {$DEFINE BCB_COMPILER}
  88.   {$UNDEF UNKNOWN_COMPILER}
  89.   {$DEFINE RMVERSET}
  90. {$ELSE}
  91.   {$IFNDEF RMVERSET}
  92.     {$DEFINE BCB3_OR_HIGHER}
  93.   {$ENDIF}
  94. {$ENDIF}
  95.  
  96. {$IFDEF VER120} //DELPHI 4
  97.   {$DEFINE BD4}
  98.   {$DEFINE DELPHI_COMPILER}
  99.   {$UNDEF UNKNOWN_COMPILER}
  100.   {$DEFINE RMVERSET}
  101. {$ELSE}
  102.   {$IFNDEF RMVERSET}
  103.     {$DEFINE D4_OR_HIGHER}
  104.   {$ENDIF}
  105. {$ENDIF}
  106.  
  107. {$IFDEF VER125} //BCB 4
  108.   {$DEFINE BCB4}
  109.   {$DEFINE BCB_COMPILER}
  110.   {$UNDEF UNKNOWN_COMPILER}
  111.   {$DEFINE RMVERSET}
  112. {$ELSE}
  113.   {$IFNDEF RMVERSET}
  114.     {$DEFINE BCB4_OR_HIGHER}
  115.   {$ENDIF}
  116. {$ENDIF}
  117.  
  118. {$IFDEF VER130} //DELPHI 5
  119.   {$DEFINE BD5}
  120.   {$DEFINE DELPHI_COMPILER}
  121.   {$UNDEF UNKNOWN_COMPILER}
  122.   {$DEFINE RMVERSET}
  123. {$ELSE}
  124.   {$IFNDEF RMVERSET}
  125.     {$DEFINE D5_OR_HIGHER}
  126.   {$ENDIF}
  127. {$ENDIF}
  128.  
  129. {$IFDEF VER135} //BCB5
  130.   {$DEFINE BCB5}
  131.   {$DEFINE BCB_COMPILER}
  132.   {$UNDEF UNKNOWN_COMPILER}
  133.   {$DEFINE RMVERSET}
  134. {$ELSE}
  135.   {$IFNDEF RMVERSET}
  136.     {$DEFINE BCB5_OR_HIGHER}
  137.   {$ENDIF}
  138. {$ENDIF}
  139.  
  140. {$IFDEF VER140} //DELPHI 6
  141.   {$DEFINE BD6}
  142.   {$DEFINE DELPHI_COMPILER}
  143.   {$UNDEF UNKNOWN_COMPILER}
  144.   {$DEFINE RMVERSET}
  145. {$ELSE}
  146.   {$IFNDEF RMVERSET}
  147.     {$DEFINE D6_OR_HIGHER}
  148.   {$ENDIF}
  149. {$ENDIF}
  150.  
  151. {$UNDEF RMVERSET}
  152.  
  153. {$B-} //Turn off Complete Boolean Evaluation
  154. {$D-} //Turn off the damn Debug Info
  155.