home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 March / Chip_2002-03_cd1.bin / zkuste / delphi / kompon / d123456 / SRVALEDT.ZIP / rr.inc < prev    next >
Encoding:
Text File  |  2001-10-21  |  2.9 KB  |  128 lines

  1. {
  2.   rr.inc:    Include file, defines conditional compilation symbols
  3.         for Borland Delphi / C++Builder RAD tools
  4.  
  5.   Author:       Robert Ro▀mair, Robert.Rossmair@t-online.de
  6.  
  7.   Version:      1.3, 28-Feb-2000
  8.  
  9.   Predefinded compiler version symbols are:
  10.   (VERxyz means compiler version xy.z)
  11.  
  12.   VER80        Delphi 1.0
  13.   VER90        Delphi 2.0
  14.   VER93        C++Builder 1.0
  15.   VER100    Delphi 3.0
  16.   VER110    C++Builder 3.0
  17.   VER120    Delphi 4.0
  18.   VER125    C++Builder 4.0
  19.   VER130    Delphi 5.0
  20.   VER135    C++Builder 5.0
  21.   VER140    Delphi 6.0
  22. }
  23.  
  24. {$B-} { Complete Boolean Evaluation }
  25. {$R-} { Range-Checking }
  26. {$V-} { Var-String Checking }
  27. {$T-} { Typed @ operator }
  28. {$X+} { Extended syntax }
  29. {$P+} { Open string params }
  30. {$IFDEF WIN32}
  31. {$J+} { Writeable structured consts }
  32. {$H+} { Use long strings by default }
  33. {$ENDIF}
  34.  
  35. {$DEFINE VER90_up}
  36. {$DEFINE VER93_up}
  37. {$DEFINE VER100_up}
  38. {$DEFINE VER110_up}
  39. {$DEFINE VER120_up}
  40. {$DEFINE VER125_up}
  41. {$DEFINE VER130_up}
  42. {$DEFINE VER135_up}
  43. {$DEFINE VER140_up}
  44.  
  45. {$IFNDEF VER140}
  46.   {$UNDEF VER140_up}
  47.   {$IFNDEF VER135}
  48.     {$UNDEF VER135_up}
  49.     {$IFNDEF VER130}
  50.       {$UNDEF VER130_up}
  51.       {$IFNDEF VER125}
  52.         {$UNDEF VER125_up}
  53.         {$IFNDEF VER120}
  54.           {$UNDEF VER120_up}
  55.           {$IFNDEF VER110}
  56.             {$UNDEF VER110_up}
  57.             {$IFNDEF VER100}
  58.               {$UNDEF VER100_up}
  59.               {$IFNDEF VER93}
  60.                 {$UNDEF VER93_up}
  61.                 {$IFNDEF VER90}
  62.                   {$UNDEF VER90_up}
  63.                 {$ENDIF}
  64.               {$ENDIF}
  65.             {$ENDIF}
  66.           {$ENDIF}
  67.         {$ENDIF}
  68.       {$ENDIF}
  69.     {$ENDIF}
  70.   {$ENDIF}
  71. {$ENDIF}
  72.  
  73.  
  74. {$IFDEF VER93}  { Borland C++Builder 1.0 }
  75.   {$DEFINE CBUILDER}
  76. {$ENDIF}
  77.  
  78. {$IFDEF VER110} { Borland C++Builder 3.0 }
  79.   {$DEFINE CBUILDER}
  80. {$ENDIF}
  81.  
  82. {$IFDEF VER125} { Borland C++Builder 4.0 }
  83.   {$DEFINE CBUILDER}
  84. {$ENDIF}
  85.  
  86. {$IFDEF VER135} { Borland C++Builder 5.0 }
  87.   {$DEFINE CBUILDER}
  88. {$ENDIF}
  89.  
  90.  
  91. {$IFDEF CBUILDER}
  92.   {$IFNDEF VER93}
  93.   {$ObjExportAll On}
  94.   {$ENDIF}
  95. {$ENDIF}
  96.  
  97. {$IFDEF VER100_up}        { Delphi 3 and above }
  98.   {$DEFINE RR_PackageSupport}
  99.   {$DEFINE RR_Interfaces}
  100.   {$DEFINE RR_Resourcestring}
  101.   {$DEFINE RR_EnhancedTBitmap}
  102.   {$DEFINE RR_JPEG}
  103.   {$IFDEF VER110_up}        { C++Builder 3 and above }
  104.     {$DEFINE RR_DefaultParams}
  105.     {$IFDEF VER120_up}        { Delphi 4 and above }
  106.       {$DEFINE RR_Overloading}
  107.     {$ENDIF}
  108.   {$ENDIF}
  109. {$ENDIF}
  110.  
  111. {$DEFINE RR_PicEditBroken}    { PicEdit unit broken (missing LibConst) }
  112.  
  113. {$IFNDEF VER100 (not Delphi 3) }
  114.   {$IFNDEF VER110 (not C++Builder 3) }
  115.      {$IFNDEF VER120 (not Delphi 4) }
  116.      {$UNDEF RR_PicEditBroken}
  117.      {$ENDIF}
  118.   {$ENDIF}
  119. {$ENDIF}
  120.  
  121. {$IFDEF VER100}
  122.   { Graphics.CopyBitmap bug: invalid parameters are passed to
  123.     CreateDIBSection when HandleType = bmDIB and the value of the
  124.     boolean expression (Width*Height=0) changes.
  125.     This will cause an EOutOfResources exception. }
  126.   {$DEFINE RR_CopyBitmapBug}
  127. {$ENDIF}
  128.