jedi.inc 87 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012
  1. {$IFNDEF JEDI_INC}
  2. {$DEFINE JEDI_INC}
  3. {**************************************************************************************************}
  4. { }
  5. { The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License");}
  6. { you may not use this file except in compliance with the License. You may obtain a copy of the }
  7. { License at http://www.mozilla.org/MPL/ }
  8. { }
  9. { Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF }
  10. { ANY KIND, either express or implied. See the License for the specific language governing rights }
  11. { and limitations under the License. }
  12. { }
  13. { The Original Code is: jedi.inc. }
  14. { The Initial Developer of the Original Code is Project JEDI http://www.delphi-jedi.org }
  15. { }
  16. { Alternatively, the contents of this file may be used under the terms of the GNU Lesser General }
  17. { Public License (the "LGPL License"), in which case the provisions of the LGPL License are }
  18. { applicable instead of those above. If you wish to allow use of your version of this file only }
  19. { under the terms of the LGPL License and not to allow others to use your version of this file }
  20. { under the MPL, indicate your decision by deleting the provisions above and replace them with }
  21. { the notice and other provisions required by the LGPL License. If you do not delete the }
  22. { provisions above, a recipient may use your version of this file under either the MPL or the }
  23. { LGPL License. }
  24. { }
  25. { For more information about the LGPL: http://www.gnu.org/copyleft/lesser.html }
  26. { }
  27. {**************************************************************************************************}
  28. { }
  29. { This file defines various generic compiler directives used in different libraries, e.g. in the }
  30. { JEDI Code Library (JCL) and JEDI Visual Component Library Library (JVCL). The directives in }
  31. { this file are of generic nature and consist mostly of mappings from the VERXXX directives }
  32. { defined by Delphi, C++Builder and FPC to friendly names such as DELPHI5 and }
  33. { SUPPORTS_WIDESTRING. These friendly names are subsequently used in the libraries to test for }
  34. { compiler versions and/or whether the compiler supports certain features (such as widestrings or }
  35. { 64 bit integers. The libraries provide an additional, library specific, include file. For the }
  36. { JCL e.g. this is jcl.inc. These files should be included in source files instead of this file }
  37. { (which is pulled in automatically). }
  38. { }
  39. {**************************************************************************************************}
  40. { }
  41. { Last modified: $Date:: $ }
  42. { Revision: $Rev:: $ }
  43. { Author: $Author:: $ }
  44. { }
  45. {**************************************************************************************************}
  46. (*
  47. - Development environment directives
  48. This file defines two directives to indicate which development environment the
  49. library is being compiled with. Currently this can either be Delphi, Kylix,
  50. C++Builder or FPC.
  51. Directive Description
  52. ------------------------------------------------------------------------------
  53. DELPHI Defined if compiled with Delphi
  54. KYLIX Defined if compiled with Kylix
  55. DELPHICOMPILER Defined if compiled with Delphi or Kylix/Delphi
  56. BCB Defined if compiled with C++Builder
  57. CPPBUILDER Defined if compiled with C++Builder (alias for BCB)
  58. BCBCOMPILER Defined if compiled with C++Builder or Kylix/C++
  59. DELPHILANGUAGE Defined if compiled with Delphi, Kylix or C++Builder
  60. BORLAND Defined if compiled with Delphi, Kylix or C++Builder
  61. FPC Defined if compiled with FPC
  62. - Platform Directives
  63. Platform directives are not all explicitly defined in this file, some are
  64. defined by the compiler itself. They are listed here only for completeness.
  65. Directive Description
  66. ------------------------------------------------------------------------------
  67. WIN32 Defined when target platform is 32 bit Windows
  68. WIN64 Defined when target platform is 64 bit Windows
  69. MSWINDOWS Defined when target platform is 32 bit Windows
  70. LINUX Defined when target platform is Linux
  71. UNIX Defined when target platform is Unix-like (including Linux)
  72. CLR Defined when target platform is .NET
  73. - Architecture directives. These are auto-defined by FPC
  74. CPU32 and CPU64 are mostly for generic pointer size dependant differences rather
  75. than for a specific architecture.
  76. CPU386 Defined when target platform is native x86 (win32)
  77. CPUx86_64 Defined when target platform is native x86_64 (win64)
  78. CPU32 Defined when target is 32-bit
  79. CPU64 Defined when target is 64-bit
  80. CPUASM Defined when target assembler is available
  81. - Visual library Directives
  82. The following directives indicate for a visual library. In a Delphi/BCB
  83. (Win32) application you need to define the VisualCLX symbol in the project
  84. options, if you want to use the VisualCLX library. Alternatively you can use
  85. the IDE expert, which is distributed with the JCL to do this automatically.
  86. Directive Description
  87. ------------------------------------------------------------------------------
  88. VCL Defined for Delphi/BCB (Win32) exactly if VisualCLX is not defined
  89. VisualCLX Defined for Kylix; needs to be defined for Delphi/BCB to
  90. use JCL with VisualCLX applications.
  91. - Other cross-platform related defines
  92. These symbols are intended to help in writing portable code.
  93. Directive Description
  94. ------------------------------------------------------------------------------
  95. PUREPASCAL Code is machine-independent (as opposed to assembler code)
  96. Win32API Code is specific for the Win32 API;
  97. use instead of "{$IFNDEF CLR} {$IFDEF MSWINDOWS}" constructs
  98. - Delphi Versions
  99. The following directives are direct mappings from the VERXXX directives to a
  100. friendly name of the associated compiler. These directives are only defined if
  101. the compiler is Delphi (ie DELPHI is defined).
  102. Directive Description
  103. ------------------------------------------------------------------------------
  104. DELPHI1 Defined when compiling with Delphi 1 (Codename WASABI/MANGO)
  105. DELPHI2 Defined when compiling with Delphi 2 (Codename POLARIS)
  106. DELPHI3 Defined when compiling with Delphi 3 (Codename IVORY)
  107. DELPHI4 Defined when compiling with Delphi 4 (Codename ALLEGRO)
  108. DELPHI5 Defined when compiling with Delphi 5 (Codename ARGUS)
  109. DELPHI6 Defined when compiling with Delphi 6 (Codename ILLIAD)
  110. DELPHI7 Defined when compiling with Delphi 7 (Codename AURORA)
  111. DELPHI8 Defined when compiling with Delphi 8 (Codename OCTANE)
  112. DELPHI2005 Defined when compiling with Delphi 2005 (Codename DIAMONDBACK)
  113. DELPHI9 Alias for DELPHI2005
  114. DELPHI10 Defined when compiling with Delphi 2006 (Codename DEXTER)
  115. DELPHI2006 Alias for DELPHI10
  116. DELPHI11 Defined when compiling with Delphi 2007 for Win32 (Codename SPACELY)
  117. DELPHI2007 Alias for DELPHI11
  118. DELPHI12 Defined when compiling with Delphi 2009 for Win32 (Codename TIBURON)
  119. DELPHI2009 Alias for DELPHI12
  120. DELPHI14 Defined when compiling with Delphi 2010 for Win32 (Codename WEAVER)
  121. DELPHI2010 Alias for DELPHI14
  122. DELPHI15 Defined when compiling with Delphi XE for Win32 (Codename FULCRUM)
  123. DELPHIXE Alias for DELPHI15
  124. DELPHI16 Defined when compiling with Delphi XE2 for Win32 (Codename PULSAR)
  125. DELPHIXE2 Alias for DELPHI16
  126. DELPHI17 Defined when compiling with Delphi XE3 for Win32 (Codename WATERDRAGON)
  127. DELPHIXE3 Alias for DELPHI17
  128. DELPHI18 Defined when compiling with Delphi XE4 for Win32 (Codename QUINTESSENCE)
  129. DELPHIXE4 Alias for DELPHI18
  130. DELPHI19 Defined when compiling with Delphi XE5 for Win32 (Codename ZEPHYR)
  131. DELPHIXE5 Alias for DELPHI19
  132. DELPHI20 Defined when compiling with Delphi XE6 for Win32 (Codename PROTEUS)
  133. DELPHIXE6 Alias for DELPHI20
  134. DELPHI21 Defined when compiling with Delphi XE7 for Win32 (Codename CARPATHIA)
  135. DELPHIXE7 Alias for DELPHI21
  136. DELPHI22 Defined when compiling with Delphi XE8 for Win32 (Codename ELBRUS)
  137. DELPHIXE8 Alias for DELPHI22
  138. DELPHI23 Defined when compiling with Delphi 10 for Win32 (Codename AITANA)
  139. DELPHIX_SEATTLE Alias for DELPHI23
  140. DELPHI24 Defined when compiling with Delphi 10.1 for Win32 (Codename BIGBEN)
  141. DELPHIX_BERLIN Alias for DELPHI24
  142. DELPHI25 Defined when compiling with Delphi 10.2 for Win32 (Codename GODZILLA)
  143. DELPHIX_TOKYO Alias for DELPHI25
  144. DELPHI26 Defined when compiling with Delphi 10.3 for Win32 (Codename CARNIVAL)
  145. DELPHIX_RIO Alias for DELPHI26
  146. DELPHI1_UP Defined when compiling with Delphi 1 or higher
  147. DELPHI2_UP Defined when compiling with Delphi 2 or higher
  148. DELPHI3_UP Defined when compiling with Delphi 3 or higher
  149. DELPHI4_UP Defined when compiling with Delphi 4 or higher
  150. DELPHI5_UP Defined when compiling with Delphi 5 or higher
  151. DELPHI6_UP Defined when compiling with Delphi 6 or higher
  152. DELPHI7_UP Defined when compiling with Delphi 7 or higher
  153. DELPHI8_UP Defined when compiling with Delphi 8 or higher
  154. DELPHI2005_UP Defined when compiling with Delphi 2005 or higher
  155. DELPHI9_UP Alias for DELPHI2005_UP
  156. DELPHI10_UP Defined when compiling with Delphi 2006 or higher
  157. DELPHI2006_UP Alias for DELPHI10_UP
  158. DELPHI11_UP Defined when compiling with Delphi 2007 for Win32 or higher
  159. DELPHI2007_UP Alias for DELPHI11_UP
  160. DELPHI12_UP Defined when compiling with Delphi 2009 for Win32 or higher
  161. DELPHI2009_UP Alias for DELPHI12_UP
  162. DELPHI14_UP Defined when compiling with Delphi 2010 for Win32 or higher
  163. DELPHI2010_UP Alias for DELPHI14_UP
  164. DELPHI15_UP Defined when compiling with Delphi XE for Win32 or higher
  165. DELPHIXE_UP Alias for DELPHI15_UP
  166. DELPHI16_UP Defined when compiling with Delphi XE2 for Win32 or higher
  167. DELPHIXE2_UP Alias for DELPHI16_UP
  168. DELPHI17_UP Defined when compiling with Delphi XE3 for Win32 or higher
  169. DELPHIXE3_UP Alias for DELPHI17_UP
  170. DELPHI18_UP Defined when compiling with Delphi XE4 for Win32 or higher
  171. DELPHIXE4_UP Alias for DELPHI18_UP
  172. DELPHI19_UP Defined when compiling with Delphi XE5 for Win32 or higher
  173. DELPHIXE5_UP Alias for DELPHI19_UP
  174. DELPHI20_UP Defined when compiling with Delphi XE6 for Win32 or higher
  175. DELPHIXE6_UP Alias for DELPHI20_UP
  176. DELPHI21_UP Defined when compiling with Delphi XE7 for Win32 or higher
  177. DELPHIXE7_UP Alias for DELPHI21_UP
  178. DELPHI22_UP Defined when compiling with Delphi XE8 for Win32 or higher
  179. DELPHIXE8_UP Alias for DELPHI22_UP
  180. DELPHI23_UP Defined when compiling with Delphi 10 for Win32 or higher
  181. DELPHIX_SEATTLE_UP Alias for DELPHI23_UP
  182. DELPHI24_UP Defined when compiling with Delphi 10.1 for Win32 or higher
  183. DELPHIX_BERLIN_UP Alias for DELPHI24_UP
  184. DELPHI25_UP Defined when compiling with Delphi 10.2 for Win32 or higher
  185. DELPHIX_TOKYO_UP Alias for DELPHI25_UP
  186. DELPHI26_UP Defined when compiling with Delphi 10.3 for Win32 or higher
  187. DELPHIX_RIO_UP Alias for DELPHI26_UP
  188. DELPHI27_UP Defined when compiling with Delphi 10.4 for Win32 or higher
  189. - Kylix Versions
  190. The following directives are direct mappings from the VERXXX directives to a
  191. friendly name of the associated compiler. These directives are only defined if
  192. the compiler is Kylix (ie KYLIX is defined).
  193. Directive Description
  194. ------------------------------------------------------------------------------
  195. KYLIX1 Defined when compiling with Kylix 1
  196. KYLIX2 Defined when compiling with Kylix 2
  197. KYLIX3 Defined when compiling with Kylix 3 (Codename CORTEZ)
  198. KYLIX1_UP Defined when compiling with Kylix 1 or higher
  199. KYLIX2_UP Defined when compiling with Kylix 2 or higher
  200. KYLIX3_UP Defined when compiling with Kylix 3 or higher
  201. - Delphi Compiler Versions (Delphi / Kylix, not in BCB mode)
  202. Directive Description
  203. ------------------------------------------------------------------------------
  204. DELPHICOMPILER1 Defined when compiling with Delphi 1
  205. DELPHICOMPILER2 Defined when compiling with Delphi 2
  206. DELPHICOMPILER3 Defined when compiling with Delphi 3
  207. DELPHICOMPILER4 Defined when compiling with Delphi 4
  208. DELPHICOMPILER5 Defined when compiling with Delphi 5
  209. DELPHICOMPILER6 Defined when compiling with Delphi 6 or Kylix 1, 2 or 3
  210. DELPHICOMPILER7 Defined when compiling with Delphi 7
  211. DELPHICOMPILER8 Defined when compiling with Delphi 8
  212. DELPHICOMPILER9 Defined when compiling with Delphi 2005
  213. DELPHICOMPILER10 Defined when compiling with Delphi Personality of BDS 4.0
  214. DELPHICOMPILER11 Defined when compiling with Delphi 2007 for Win32
  215. DELPHICOMPILER12 Defined when compiling with Delphi Personality of BDS 6.0
  216. DELPHICOMPILER14 Defined when compiling with Delphi Personality of BDS 7.0
  217. DELPHICOMPILER15 Defined when compiling with Delphi Personality of BDS 8.0
  218. DELPHICOMPILER16 Defined when compiling with Delphi Personality of BDS 9.0
  219. DELPHICOMPILER17 Defined when compiling with Delphi Personality of BDS 10.0
  220. DELPHICOMPILER18 Defined when compiling with Delphi Personality of BDS 11.0
  221. DELPHICOMPILER19 Defined when compiling with Delphi Personality of BDS 12.0
  222. DELPHICOMPILER20 Defined when compiling with Delphi Personality of BDS 14.0
  223. DELPHICOMPILER21 Defined when compiling with Delphi Personality of BDS 15.0
  224. DELPHICOMPILER22 Defined when compiling with Delphi Personality of BDS 16.0
  225. DELPHICOMPILER23 Defined when compiling with Delphi Personality of BDS 17.0
  226. DELPHICOMPILER24 Defined when compiling with Delphi Personality of BDS 18.0
  227. DELPHICOMPILER25 Defined when compiling with Delphi Personality of BDS 19.0
  228. DELPHICOMPILER26 Defined when compiling with Delphi Personality of BDS 20.0
  229. DELPHICOMPILER27 Defined when compiling with Delphi Personality of BDS 21.0
  230. DELPHICOMPILER1_UP Defined when compiling with Delphi 1 or higher
  231. DELPHICOMPILER2_UP Defined when compiling with Delphi 2 or higher
  232. DELPHICOMPILER3_UP Defined when compiling with Delphi 3 or higher
  233. DELPHICOMPILER4_UP Defined when compiling with Delphi 4 or higher
  234. DELPHICOMPILER5_UP Defined when compiling with Delphi 5 or higher
  235. DELPHICOMPILER6_UP Defined when compiling with Delphi 6 or Kylix 1, 2 or 3 or higher
  236. DELPHICOMPILER7_UP Defined when compiling with Delphi 7 or higher
  237. DELPHICOMPILER8_UP Defined when compiling with Delphi 8 or higher
  238. DELPHICOMPILER9_UP Defined when compiling with Delphi 2005
  239. DELPHICOMPILER10_UP Defined when compiling with Delphi 2006 or higher
  240. DELPHICOMPILER11_UP Defined when compiling with Delphi 2007 for Win32 or higher
  241. DELPHICOMPILER12_UP Defined when compiling with Delphi 2009 for Win32 or higher
  242. DELPHICOMPILER14_UP Defined when compiling with Delphi 2010 for Win32 or higher
  243. DELPHICOMPILER15_UP Defined when compiling with Delphi XE for Win32 or higher
  244. DELPHICOMPILER16_UP Defined when compiling with Delphi XE2 for Win32 or higher
  245. DELPHICOMPILER17_UP Defined when compiling with Delphi XE3 for Win32 or higher
  246. DELPHICOMPILER18_UP Defined when compiling with Delphi XE4 for Win32 or higher
  247. DELPHICOMPILER19_UP Defined when compiling with Delphi XE5 for Win32 or higher
  248. DELPHICOMPILER20_UP Defined when compiling with Delphi XE6 for Win32 or higher
  249. DELPHICOMPILER21_UP Defined when compiling with Delphi XE7 for Win32 or higher
  250. DELPHICOMPILER22_UP Defined when compiling with Delphi XE8 for Win32 or higher
  251. DELPHICOMPILER23_UP Defined when compiling with Delphi 10 for Win32 or higher
  252. DELPHICOMPILER24_UP Defined when compiling with Delphi 10.1 for Win32 or higher
  253. DELPHICOMPILER25_UP Defined when compiling with Delphi 10.2 for Win32 or higher
  254. DELPHICOMPILER26_UP Defined when compiling with Delphi 10.3 for Win32 or higher
  255. DELPHICOMPILER27_UP Defined when compiling with Delphi 10.4 for Win32 or higher
  256. - C++Builder Versions
  257. The following directives are direct mappings from the VERXXX directives to a
  258. friendly name of the associated compiler. These directives are only defined if
  259. the compiler is C++Builder (ie BCB is defined).
  260. Directive Description
  261. ------------------------------------------------------------------------------
  262. BCB1 Defined when compiling with C++Builder 1
  263. BCB3 Defined when compiling with C++Builder 3
  264. BCB4 Defined when compiling with C++Builder 4
  265. BCB5 Defined when compiling with C++Builder 5 (Codename RAMPAGE)
  266. BCB6 Defined when compiling with C++Builder 6 (Codename RIPTIDE)
  267. BCB10 Defined when compiling with C++Builder Personality of BDS 4.0 (also known as C++Builder 2006) (Codename DEXTER)
  268. BCB11 Defined when compiling with C++Builder Personality of RAD Studio 2007 (also known as C++Builder 2007) (Codename COGSWELL)
  269. BCB12 Defined when compiling with C++Builder Personality of RAD Studio 2009 (also known as C++Builder 2009) (Codename TIBURON)
  270. BCB14 Defined when compiling with C++Builder Personality of RAD Studio 2010 (also known as C++Builder 2010) (Codename WEAVER)
  271. BCB15 Defined when compiling with C++Builder Personality of RAD Studio XE (also known as C++Builder XE) (Codename FULCRUM)
  272. BCB16 Defined when compiling with C++Builder Personality of RAD Studio XE2 (also known as C++Builder XE2) (Codename PULSAR)
  273. BCB17 Defined when compiling with C++Builder Personality of RAD Studio XE3 (also known as C++Builder XE3) (Codename WATERDRAGON)
  274. BCB18 Defined when compiling with C++Builder Personality of RAD Studio XE4 (also known as C++Builder XE4) (Codename QUINTESSENCE)
  275. BCB19 Defined when compiling with C++Builder Personality of RAD Studio XE5 (also known as C++Builder XE5) (Codename ZEPHYR)
  276. BCB20 Defined when compiling with C++Builder Personality of RAD Studio XE6 (also known as C++Builder XE6) (Codename PROTEUS)
  277. BCB21 Defined when compiling with C++Builder Personality of RAD Studio XE7 (also known as C++Builder XE7) (Codename CARPATHIA)
  278. BCB22 Defined when compiling with C++Builder Personality of RAD Studio XE8 (also known as C++Builder XE8) (Codename ELBRUS)
  279. BCB23 Defined when compiling with C++Builder Personality of RAD Studio 10 Seattle (also known as C++Builder 10 Seattle) (Codename AITANA)
  280. BCB24 Defined when compiling with C++Builder Personality of RAD Studio 10.1 Berlin (also known as C++Builder 10.1 Berlin) (Codename BIGBEN)
  281. BCB25 Defined when compiling with C++Builder Personality of RAD Studio 10.2 Tokyo (also known as C++Builder 10.2 Tokyo) (Codename GODZILLA)
  282. BCB26 Defined when compiling with C++Builder Personality of RAD Studio 10.3 Rio (also known as C++Builder 10.3) (Codename CARNIVAL)
  283. BCB27 Defined when compiling with C++Builder Personality of RAD Studio 10.4 Rio (also known as C++Builder 10.4) (Codename DENALI)
  284. BCB1_UP Defined when compiling with C++Builder 1 or higher
  285. BCB3_UP Defined when compiling with C++Builder 3 or higher
  286. BCB4_UP Defined when compiling with C++Builder 4 or higher
  287. BCB5_UP Defined when compiling with C++Builder 5 or higher
  288. BCB6_UP Defined when compiling with C++Builder 6 or higher
  289. BCB10_UP Defined when compiling with C++Builder Personality of BDS 4.0 or higher
  290. BCB11_UP Defined when compiling with C++Builder Personality of RAD Studio 2007 or higher
  291. BCB12_UP Defined when compiling with C++Builder Personality of RAD Studio 2009 or higher
  292. BCB14_UP Defined when compiling with C++Builder Personality of RAD Studio 2010 or higher
  293. BCB15_UP Defined when compiling with C++Builder Personality of RAD Studio XE or higher
  294. BCB16_UP Defined when compiling with C++Builder Personality of RAD Studio XE2 or higher
  295. BCB17_UP Defined when compiling with C++Builder Personality of RAD Studio XE3 or higher
  296. BCB18_UP Defined when compiling with C++Builder Personality of RAD Studio XE4 or higher
  297. BCB19_UP Defined when compiling with C++Builder Personality of RAD Studio XE5 or higher
  298. BCB20_UP Defined when compiling with C++Builder Personality of RAD Studio XE6 or higher
  299. BCB21_UP Defined when compiling with C++Builder Personality of RAD Studio XE7 or higher
  300. BCB22_UP Defined when compiling with C++Builder Personality of RAD Studio XE8 or higher
  301. BCB23_UP Defined when compiling with C++Builder Personality of RAD Studio 10 or higher
  302. BCB24_UP Defined when compiling with C++Builder Personality of RAD Studio 10.1 or higher
  303. BCB25_UP Defined when compiling with C++Builder Personality of RAD Studio 10.2 or higher
  304. BCB26_UP Defined when compiling with C++Builder Personality of RAD Studio 10.3 or higher
  305. BCB27_UP Defined when compiling with C++Builder Personality of RAD Studio 10.4 or higher
  306. - RAD Studio / Borland Developer Studio Versions
  307. The following directives are direct mappings from the VERXXX directives to a
  308. friendly name of the associated IDE. These directives are only defined if
  309. the IDE is Borland Developer Studio Version 2 or above.
  310. Note: Borland Developer Studio 2006 is marketed as Delphi 2006 or C++Builder 2006,
  311. but those provide only different labels for identical content.
  312. Directive Description
  313. ------------------------------------------------------------------------------
  314. BDS Defined when compiling with BDS version of dcc32.exe (Codename SIDEWINDER)
  315. BDS2 Defined when compiling with BDS 2.0 (Delphi 8) (Codename OCTANE)
  316. BDS3 Defined when compiling with BDS 3.0 (Delphi 2005) (Codename DIAMONDBACK)
  317. BDS4 Defined when compiling with BDS 4.0 (Borland Developer Studio 2006) (Codename DEXTER)
  318. BDS5 Defined when compiling with BDS 5.0 (CodeGear RAD Studio 2007) (Codename HIGHLANDER)
  319. BDS6 Defined when compiling with BDS 6.0 (CodeGear RAD Studio 2009) (Codename TIBURON)
  320. BDS7 Defined when compiling with BDS 7.0 (Embarcadero RAD Studio 2010) (Codename WEAVER)
  321. BDS8 Defined when compiling with BDS 8.0 (Embarcadero RAD Studio XE) (Codename FULCRUM)
  322. BDS9 Defined when compiling with BDS 9.0 (Embarcadero RAD Studio XE2) (Codename PULSAR)
  323. BDS10 Defined when compiling with BDS 10.0 (Embarcadero RAD Studio XE3) (Codename WATERDRAGON)
  324. BDS11 Defined when compiling with BDS 11.0 (Embarcadero RAD Studio XE4) (Codename QUINTESSENCE)
  325. BDS12 Defined when compiling with BDS 12.0 (Embarcadero RAD Studio XE5) (Codename ZEPHYR)
  326. BDS14 Defined when compiling with BDS 14.0 (Embarcadero RAD Studio XE6) (Codename PROTEUS)
  327. BDS15 Defined when compiling with BDS 15.0 (Embarcadero RAD Studio XE7) (Codename CARPATHIA)
  328. BDS16 Defined when compiling with BDS 16.0 (Embarcadero RAD Studio XE8) (Codename ELBRUS)
  329. BDS17 Defined when compiling with BDS 17.0 (Embarcadero RAD Studio 10) (Codename AITANA)
  330. BDS18 Defined when compiling with BDS 18.0 (Embarcadero RAD Studio 10.1) (Codename BIGBEN)
  331. BDS19 Defined when compiling with BDS 19.0 (Embarcadero RAD Studio 10.2) (Codename GODZILLA)
  332. BDS20 Defined when compiling with BDS 20.0 (Embarcadero RAD Studio 10.3) (Codename CARNIVAL)
  333. BDS21 Defined when compiling with BDS 21.0 (Embarcadero RAD Studio 10.4) (Codename DENALI)
  334. BDS2_UP Defined when compiling with BDS 2.0 or higher
  335. BDS3_UP Defined when compiling with BDS 3.0 or higher
  336. BDS4_UP Defined when compiling with BDS 4.0 or higher
  337. BDS5_UP Defined when compiling with BDS 5.0 or higher
  338. BDS6_UP Defined when compiling with BDS 6.0 or higher
  339. BDS7_UP Defined when compiling with BDS 7.0 or higher
  340. BDS8_UP Defined when compiling with BDS 8.0 or higher
  341. BDS9_UP Defined when compiling with BDS 9.0 or higher
  342. BDS10_UP Defined when compiling with BDS 10.0 or higher
  343. BDS11_UP Defined when compiling with BDS 11.0 or higher
  344. BDS12_UP Defined when compiling with BDS 12.0 or higher
  345. BDS14_UP Defined when compiling with BDS 14.0 or higher
  346. BDS15_UP Defined when compiling with BDS 15.0 or higher
  347. BDS16_UP Defined when compiling with BDS 16.0 or higher
  348. BDS17_UP Defined when compiling with BDS 17.0 or higher
  349. BDS18_UP Defined when compiling with BDS 18.0 or higher
  350. BDS19_UP Defined when compiling with BDS 19.0 or higher
  351. BDS20_UP Defined when compiling with BDS 20.0 or higher
  352. BDS21_UP Defined when compiling with BDS 21.0 or higher
  353. - Compiler Versions
  354. The following directives are direct mappings from the VERXXX directives to a
  355. friendly name of the associated compiler. Unlike the DELPHI_X and BCB_X
  356. directives, these directives are indepedent of the development environment.
  357. That is, they are defined regardless of whether compilation takes place using
  358. Delphi or C++Builder.
  359. Directive Description
  360. ------------------------------------------------------------------------------
  361. COMPILER1 Defined when compiling with Delphi 1
  362. COMPILER2 Defined when compiling with Delphi 2 or C++Builder 1
  363. COMPILER3 Defined when compiling with Delphi 3
  364. COMPILER35 Defined when compiling with C++Builder 3
  365. COMPILER4 Defined when compiling with Delphi 4 or C++Builder 4
  366. COMPILER5 Defined when compiling with Delphi 5 or C++Builder 5
  367. COMPILER6 Defined when compiling with Delphi 6 or C++Builder 6
  368. COMPILER7 Defined when compiling with Delphi 7
  369. COMPILER8 Defined when compiling with Delphi 8
  370. COMPILER9 Defined when compiling with Delphi 9
  371. COMPILER10 Defined when compiling with Delphi or C++Builder Personalities of BDS 4.0
  372. COMPILER11 Defined when compiling with Delphi or C++Builder Personalities of BDS 5.0
  373. COMPILER12 Defined when compiling with Delphi or C++Builder Personalities of BDS 6.0
  374. COMPILER14 Defined when compiling with Delphi or C++Builder Personalities of BDS 7.0
  375. COMPILER15 Defined when compiling with Delphi or C++Builder Personalities of BDS 8.0
  376. COMPILER16 Defined when compiling with Delphi or C++Builder Personalities of BDS 9.0
  377. COMPILER17 Defined when compiling with Delphi or C++Builder Personalities of BDS 10.0
  378. COMPILER18 Defined when compiling with Delphi or C++Builder Personalities of BDS 11.0
  379. COMPILER19 Defined when compiling with Delphi or C++Builder Personalities of BDS 12.0
  380. COMPILER20 Defined when compiling with Delphi or C++Builder Personalities of BDS 14.0
  381. COMPILER21 Defined when compiling with Delphi or C++Builder Personalities of BDS 15.0
  382. COMPILER22 Defined when compiling with Delphi or C++Builder Personalities of BDS 16.0
  383. COMPILER23 Defined when compiling with Delphi or C++Builder Personalities of BDS 17.0
  384. COMPILER24 Defined when compiling with Delphi or C++Builder Personalities of BDS 18.0
  385. COMPILER25 Defined when compiling with Delphi or C++Builder Personalities of BDS 19.0
  386. COMPILER26 Defined when compiling with Delphi or C++Builder Personalities of BDS 20.0
  387. COMPILER27 Defined when compiling with Delphi or C++Builder Personalities of BDS 21.0
  388. COMPILER1_UP Defined when compiling with Delphi 1 or higher
  389. COMPILER2_UP Defined when compiling with Delphi 2 or C++Builder 1 or higher
  390. COMPILER3_UP Defined when compiling with Delphi 3 or higher
  391. COMPILER35_UP Defined when compiling with C++Builder 3 or higher
  392. COMPILER4_UP Defined when compiling with Delphi 4 or C++Builder 4 or higher
  393. COMPILER5_UP Defined when compiling with Delphi 5 or C++Builder 5 or higher
  394. COMPILER6_UP Defined when compiling with Delphi 6 or C++Builder 6 or higher
  395. COMPILER7_UP Defined when compiling with Delphi 7
  396. COMPILER8_UP Defined when compiling with Delphi 8
  397. COMPILER9_UP Defined when compiling with Delphi Personalities of BDS 3.0
  398. COMPILER10_UP Defined when compiling with Delphi or C++Builder Personalities of BDS 4.0 or higher
  399. COMPILER11_UP Defined when compiling with Delphi or C++Builder Personalities of BDS 5.0 or higher
  400. COMPILER12_UP Defined when compiling with Delphi or C++Builder Personalities of BDS 6.0 or higher
  401. COMPILER14_UP Defined when compiling with Delphi or C++Builder Personalities of BDS 7.0 or higher
  402. COMPILER15_UP Defined when compiling with Delphi or C++Builder Personalities of BDS 8.0 or higher
  403. COMPILER16_UP Defined when compiling with Delphi or C++Builder Personalities of BDS 9.0 or higher
  404. COMPILER17_UP Defined when compiling with Delphi or C++Builder Personalities of BDS 10.0 or higher
  405. COMPILER18_UP Defined when compiling with Delphi or C++Builder Personalities of BDS 11.0 or higher
  406. COMPILER19_UP Defined when compiling with Delphi or C++Builder Personalities of BDS 12.0 or higher
  407. COMPILER20_UP Defined when compiling with Delphi or C++Builder Personalities of BDS 14.0 or higher
  408. COMPILER21_UP Defined when compiling with Delphi or C++Builder Personalities of BDS 15.0 or higher
  409. COMPILER22_UP Defined when compiling with Delphi or C++Builder Personalities of BDS 16.0 or higher
  410. COMPILER23_UP Defined when compiling with Delphi or C++Builder Personalities of BDS 17.0 or higher
  411. COMPILER24_UP Defined when compiling with Delphi or C++Builder Personalities of BDS 18.0 or higher
  412. COMPILER25_UP Defined when compiling with Delphi or C++Builder Personalities of BDS 19.0 or higher
  413. COMPILER26_UP Defined when compiling with Delphi or C++Builder Personalities of BDS 20.0 or higher
  414. COMPILER27_UP Defined when compiling with Delphi or C++Builder Personalities of BDS 21.0 or higher
  415. - RTL Versions
  416. Use e.g. following to determine the exact RTL version since version 14.0:
  417. {$IFDEF CONDITIONALEXPRESSIONS}
  418. {$IF Declared(RTLVersion) and (RTLVersion >= 14.2)}
  419. // code for Delphi 6.02 or higher, Kylix 2 or higher, C++Builder 6 or higher
  420. ...
  421. {$IFEND}
  422. {$ENDIF}
  423. Directive Description
  424. ------------------------------------------------------------------------------
  425. RTL80_UP Defined when compiling with Delphi 1 or higher
  426. RTL90_UP Defined when compiling with Delphi 2 or higher
  427. RTL93_UP Defined when compiling with C++Builder 1 or higher
  428. RTL100_UP Defined when compiling with Delphi 3 or higher
  429. RTL110_UP Defined when compiling with C++Builder 3 or higher
  430. RTL120_UP Defined when compiling with Delphi 4 or higher
  431. RTL125_UP Defined when compiling with C++Builder 4 or higher
  432. RTL130_UP Defined when compiling with Delphi 5 or C++Builder 5 or higher
  433. RTL140_UP Defined when compiling with Delphi 6, Kylix 1, 2 or 3 or C++Builder 6 or higher
  434. RTL150_UP Defined when compiling with Delphi 7 or higher
  435. RTL160_UP Defined when compiling with Delphi 8 or higher
  436. RTL170_UP Defined when compiling with Delphi Personalities of BDS 3.0 or higher
  437. RTL180_UP Defined when compiling with Delphi or C++Builder Personalities of BDS 4.0 or higher
  438. RTL185_UP Defined when compiling with Delphi or C++Builder Personalities of BDS 5.0 or higher
  439. RTL190_UP Defined when compiling with Delphi.NET of BDS 5.0 or higher
  440. RTL200_UP Defined when compiling with Delphi or C++Builder Personalities of BDS 6.0 or higher
  441. RTL210_UP Defined when compiling with Delphi or C++Builder Personalities of BDS 7.0 or higher
  442. RTL220_UP Defined when compiling with Delphi or C++Builder Personalities of BDS 8.0 or higher
  443. RTL230_UP Defined when compiling with Delphi or C++Builder Personalities of BDS 9.0 or higher
  444. RTL240_UP Defined when compiling with Delphi or C++Builder Personalities of BDS 10.0 or higher
  445. RTL250_UP Defined when compiling with Delphi or C++Builder Personalities of BDS 11.0 or higher
  446. RTL260_UP Defined when compiling with Delphi or C++Builder Personalities of BDS 12.0 or higher
  447. RTL270_UP Defined when compiling with Delphi or C++Builder Personalities of BDS 14.0 or higher
  448. RTL280_UP Defined when compiling with Delphi or C++Builder Personalities of BDS 15.0 or higher
  449. RTL290_UP Defined when compiling with Delphi or C++Builder Personalities of BDS 16.0 or higher
  450. RTL300_UP Defined when compiling with Delphi or C++Builder Personalities of BDS 17.0 or higher
  451. RTL310_UP Defined when compiling with Delphi or C++Builder Personalities of BDS 18.0 or higher
  452. RTL320_UP Defined when compiling with Delphi or C++Builder Personalities of BDS 19.0 or higher
  453. RTL330_UP Defined when compiling with Delphi or C++Builder Personalities of BDS 20.0 or higher
  454. RTL340_UP Defined when compiling with Delphi or C++Builder Personalities of BDS 21.0 or higher
  455. - CLR Versions
  456. Directive Description
  457. ------------------------------------------------------------------------------
  458. CLR Defined when compiling for .NET
  459. CLR10 Defined when compiling for .NET 1.0 (may be overriden by FORCE_CLR10)
  460. CLR10_UP Defined when compiling for .NET 1.0 or higher
  461. CLR11 Defined when compiling for .NET 1.1 (may be overriden by FORCE_CLR11)
  462. CLR11_UP Defined when compiling for .NET 1.1 or higher
  463. CLR20 Defined when compiling for .NET 2.0 (may be overriden by FORCE_CLR20)
  464. CLR20_UP Defined when compiling for .NET 2.0 or higher
  465. - Feature Directives
  466. The features directives are used to test if the compiler supports specific
  467. features, such as method overloading, and adjust the sources accordingly. Use
  468. of these directives is preferred over the use of the DELPHI and COMPILER
  469. directives.
  470. Directive Description
  471. ------------------------------------------------------------------------------
  472. SUPPORTS_CONSTPARAMS Compiler supports const parameters (D1+)
  473. SUPPORTS_SINGLE Compiler supports the Single type (D1+)
  474. SUPPORTS_DOUBLE Compiler supports the Double type (D1+)
  475. SUPPORTS_EXTENDED Compiler supports the Extended type (D1+)
  476. SUPPORTS_CURRENCY Compiler supports the Currency type (D2+)
  477. SUPPORTS_THREADVAR Compiler supports threadvar declarations (D2+)
  478. SUPPORTS_OUTPARAMS Compiler supports out parameters (D3+)
  479. SUPPORTS_VARIANT Compiler supports variant (D2+)
  480. SUPPORTS_WIDECHAR Compiler supports the WideChar type (D2+)
  481. SUPPORTS_WIDESTRING Compiler supports the WideString type (D3+/BCB3+)
  482. SUPPORTS_INTERFACE Compiler supports interfaces (D3+/BCB3+)
  483. SUPPORTS_DISPINTERFACE Compiler supports dispatch interfaces (D3+/BCB3+)
  484. SUPPORTS_DISPID Compiler supports dispatch ids (D3+/BCB3+/FPC)
  485. SUPPORTS_EXTSYM Compiler supports the $EXTERNALSYM directive (D4+/BCB3+)
  486. SUPPORTS_NODEFINE Compiler supports the $NODEFINE directive (D4+/BCB3+)
  487. SUPPORTS_LONGWORD Compiler supports the LongWord type (unsigned 32 bit) (D4+/BCB4+)
  488. SUPPORTS_INT64 Compiler supports the Int64 type (D4+/BCB4+)
  489. SUPPORTS_UINT64 Compiler supports the UInt64 type (D7+)
  490. SUPPORTS_DYNAMICARRAYS Compiler supports dynamic arrays (D4+/BCB4+)
  491. SUPPORTS_DEFAULTPARAMS Compiler supports default parameters (D4+/BCB4+)
  492. SUPPORTS_OVERLOAD Compiler supports overloading (D4+/BCB4+)
  493. SUPPORTS_IMPLEMENTS Compiler supports implements (D4+/BCB4+)
  494. SUPPORTS_DEPRECATED Compiler supports the deprecated directive (D6+/BCB6+)
  495. SUPPORTS_PLATFORM Compiler supports the platform directive (D6+/BCB6+)
  496. SUPPORTS_LIBRARY Compiler supports the library directive (D6+/BCB6+/FPC)
  497. SUPPORTS_LOCAL Compiler supports the local directive (D6+/BCB6+)
  498. SUPPORTS_SETPEFLAGS Compiler supports the SetPEFlags directive (D6+/BCB6+)
  499. SUPPORTS_EXPERIMENTAL_WARNINGS Compiler supports the WARN SYMBOL_EXPERIMENTAL and WARN UNIT_EXPERIMENTAL directives (D6+/BCB6+)
  500. SUPPORTS_INLINE Compiler supports the inline directive (D9+/FPC)
  501. SUPPORTS_FOR_IN Compiler supports for in loops (D9+)
  502. SUPPORTS_NESTED_CONSTANTS Compiler supports nested constants (D9+)
  503. SUPPORTS_NESTED_TYPES Compiler supports nested types (D9+)
  504. SUPPORTS_REGION Compiler supports the REGION and ENDREGION directives (D9+)
  505. SUPPORTS_ENHANCED_RECORDS Compiler supports class [operator|function|procedure] for record types (D9.NET, D10+)
  506. SUPPORTS_CLASS_FIELDS Compiler supports class fields (D9.NET, D10+)
  507. SUPPORTS_CLASS_HELPERS Compiler supports class helpers (D9.NET, D10+)
  508. SUPPORTS_CLASS_OPERATORS Compiler supports class operators (D9.NET, D10+)
  509. SUPPORTS_CLASS_CTORDTORS Compiler supports class contructors/destructors (D14+)
  510. SUPPORTS_STRICT Compiler supports strict keyword (D9.NET, D10+)
  511. SUPPORTS_STATIC Compiler supports static keyword (D9.NET, D10+)
  512. SUPPORTS_FINAL Compiler supports final keyword (D9.NET, D10+)
  513. SUPPORTS_METHODINFO Compiler supports the METHODINFO directives (D10+)
  514. SUPPORTS_GENERICS Compiler supports generic implementations (D11.NET, D12+)
  515. SUPPORTS_GENERIC_TYPES Compiler supports generic implementations of types (D11.NET, D12+, FPC)
  516. SUPPORTS_GENERIC_METHODS Compiler supports generic implementations of methods (D11.NET, D12+, FPC)
  517. SUPPORTS_GENERIC_ROUTINES Compiler supports generic implementations of global functions/procedures (FPC)
  518. SUPPORTS_DEPRECATED_DETAILS Compiler supports additional text for the deprecated directive (D11.NET, D12+)
  519. ACCEPT_DEPRECATED Compiler supports or ignores the deprecated directive (D6+/BCB6+/FPC)
  520. ACCEPT_PLATFORM Compiler supports or ignores the platform directive (D6+/BCB6+/FPC)
  521. ACCEPT_LIBRARY Compiler supports or ignores the library directive (D6+/BCB6+)
  522. SUPPORTS_CUSTOMVARIANTS Compiler supports custom variants (D6+/BCB6+)
  523. SUPPORTS_VARARGS Compiler supports varargs (D6+/BCB6+)
  524. SUPPORTS_ENUMVALUE Compiler supports assigning ordinalities to values of enums (D6+/BCB6+)
  525. SUPPORTS_DEPRECATED_WARNINGS Compiler supports deprecated warnings (D6+/BCB6+)
  526. SUPPORTS_LIBRARY_WARNINGS Compiler supports library warnings (D6+/BCB6+)
  527. SUPPORTS_PLATFORM_WARNINGS Compiler supports platform warnings (D6+/BCB6+)
  528. SUPPORTS_UNSAFE_WARNINGS Compiler supports unsafe warnings (D7)
  529. SUPPORTS_WEAKPACKAGEUNIT Compiler supports the WEAKPACKAGEUNIT directive
  530. SUPPORTS_COMPILETIME_MESSAGES Compiler supports the MESSAGE directive
  531. SUPPORTS_PACKAGES Compiler supports Packages
  532. HAS_UNIT_LIBC Unit Libc exists (Kylix, FPC on Linux/x86)
  533. HAS_UNIT_RTLCONSTS Unit RTLConsts exists (D6+/BCB6+/FPC)
  534. HAS_UNIT_TYPES Unit Types exists (D6+/BCB6+/FPC)
  535. HAS_UNIT_VARIANTS Unit Variants exists (D6+/BCB6+/FPC)
  536. HAS_UNIT_STRUTILS Unit StrUtils exists (D6+/BCB6+/FPC)
  537. HAS_UNIT_DATEUTILS Unit DateUtils exists (D6+/BCB6+/FPC)
  538. HAS_UNIT_CONTNRS Unit contnrs exists (D6+/BCB6+/FPC)
  539. HAS_UNIT_HTTPPROD Unit HTTPProd exists (D9+)
  540. HAS_UNIT_GIFIMG Unit GifImg exists (D11+)
  541. HAS_UNIT_ANSISTRINGS Unit AnsiStrings exists (D12+)
  542. HAS_UNIT_PNGIMAGE Unit PngImage exists (D12+)
  543. HAS_UNIT_CHARACTER Unit Character exists (D12+)
  544. XPLATFORM_RTL The RTL supports crossplatform function names (e.g. RaiseLastOSError) (D6+/BCB6+/FPC)
  545. SUPPORTS_UNICODE string type is aliased to an unicode string (WideString or UnicodeString) (DX.NET, D12+)
  546. SUPPORTS_UNICODE_STRING Compiler supports UnicodeString (D12+)
  547. SUPPORTS_INT_ALIASES Types Int8, Int16, Int32, UInt8, UInt16 and UInt32 are defined in the unit System (D12+)
  548. HAS_UNIT_RTTI Unit RTTI is available (D14+)
  549. SUPPORTS_CAST_INTERFACE_TO_OBJ The compiler supports casts from interfaces to objects (D14+)
  550. SUPPORTS_DELAYED_LOADING The compiler generates stubs for delaying imported function loads (D14+)
  551. HAS_UNIT_REGULAREXPRESSIONSAPI Unit RegularExpressionsAPI is available (D15+)
  552. HAS_UNIT_SYSTEM_UITYPES Unit System.UITypes is available (D16+)
  553. HAS_UNIT_SYSTEM_ACTIONS Unit System.Actions is available (D17+)
  554. DEPRECATED_SYSUTILS_ANSISTRINGS AnsiString functions from SysUtils are deprecated and moved to System.AnsiStrings (D18+)
  555. HAS_PROPERTY_STYLEELEMENTS TControl has a StyleElements property (D17+)
  556. HAS_AUTOMATIC_DB_FIELDS Database fields are automatically created/refreshed (D20+)
  557. HAS_EARGUMENTEXCEPTION Exception class EArgumentException is available (D14+)
  558. HAS_ENOTIMPLEMENTED Exception class ENotImplemented is available (D15+)
  559. HAS_UNIT_VCL_THEMES Unit Vcl.Themes is available (D16+)
  560. HAS_UNIT_UXTHEME Unit (Vcl.)UxTheme is available (D7+)
  561. HAS_EXCEPTION_STACKTRACE Exception class has the StackTrace propery (D12+)
  562. SUPPORTS_LEGACYIFEND Compiler supports the LEGACYIFEND directive (D17+)
  563. DEPRECATED_TCHARACTER TCharacter is deprecated and replaced by a record helper on Char (D18+)
  564. - Compiler Settings
  565. The compiler settings directives indicate whether a specific compiler setting
  566. is in effect. This facilitates changing compiler settings locally in a more
  567. compact and readible manner.
  568. Directive Description
  569. ------------------------------------------------------------------------------
  570. ALIGN_ON Compiling in the A+ state (no alignment)
  571. BOOLEVAL_ON Compiling in the B+ state (complete boolean evaluation)
  572. ASSERTIONS_ON Compiling in the C+ state (assertions on)
  573. DEBUGINFO_ON Compiling in the D+ state (debug info generation on)
  574. IMPORTEDDATA_ON Compiling in the G+ state (creation of imported data references)
  575. LONGSTRINGS_ON Compiling in the H+ state (string defined as AnsiString)
  576. IOCHECKS_ON Compiling in the I+ state (I/O checking enabled)
  577. WRITEABLECONST_ON Compiling in the J+ state (typed constants can be modified)
  578. LOCALSYMBOLS Compiling in the L+ state (local symbol generation)
  579. LOCALSYMBOLS_ON Alias of LOCALSYMBOLS
  580. TYPEINFO_ON Compiling in the M+ state (RTTI generation on)
  581. OPTIMIZATION_ON Compiling in the O+ state (code optimization on)
  582. OPENSTRINGS_ON Compiling in the P+ state (variable string parameters are openstrings)
  583. OVERFLOWCHECKS_ON Compiling in the Q+ state (overflow checing on)
  584. RANGECHECKS_ON Compiling in the R+ state (range checking on)
  585. TYPEDADDRESS_ON Compiling in the T+ state (pointers obtained using the @ operator are typed)
  586. SAFEDIVIDE_ON Compiling in the U+ state (save FDIV instruction through RTL emulation)
  587. VARSTRINGCHECKS_ON Compiling in the V+ state (type checking of shortstrings)
  588. STACKFRAMES_ON Compiling in the W+ state (generation of stack frames)
  589. EXTENDEDSYNTAX_ON Compiling in the X+ state (Delphi extended syntax enabled)
  590. *)
  591. {$DEFINE BORLAND}
  592. { Set FreePascal to Delphi mode }
  593. {$IFDEF FPC}
  594. {$MODE DELPHI}
  595. {$ASMMODE INTEL}
  596. {$UNDEF BORLAND}
  597. {$DEFINE CPUASM}
  598. {$DEFINE JCL_CONFIGURED}
  599. {$UNDEF PUREPASCAL}
  600. {$IFNDEF MSWINDOWS}
  601. {$DEFINE FPCNONWINDOWS}
  602. {$ENDIF MSWINDOWS}
  603. // FPC defines CPU32, CPU64 and Unix automatically
  604. {$ENDIF}
  605. {$IFDEF BORLAND}
  606. {$IFDEF LINUX}
  607. {$IFDEF VER140} // Only under Delphi 6, LINUX implies Kylix
  608. {$DEFINE KYLIX}
  609. {$ENDIF}
  610. {$ENDIF LINUX}
  611. {$IFNDEF CLR}
  612. {$IFNDEF CPUX86}
  613. // CPUX86 is not defined, which means it most likely is a 64 bits compiler.
  614. // However, this is only the case if either of two other symbols are defined:
  615. // http://docwiki.embarcadero.com/RADStudio/Seattle/en/Conditional_compilation_%28Delphi%29
  616. {$DEFINE CPU64}
  617. {$DEFINE DELPHI64_TEMPORARY}
  618. {$IFNDEF CPUX64}
  619. {$IFNDEF CPU64BITS}
  620. {$DEFINE CPU386} // None of the two 64-bits symbols are defined, assume this is 32-bit
  621. {$DEFINE CPU32}
  622. {$UNDEF CPU64}
  623. {$UNDEF DELPHI64_TEMPORARY}
  624. {$ENDIF ~CPU64BITS}
  625. {$ENDIF ~CPUX64}
  626. {$ELSE ~CPUX86}
  627. {$DEFINE CPU386}
  628. {$DEFINE CPU32}
  629. {$ENDIF ~CPUX86}
  630. // The ASSEMBLER symbol appeared with Delphi 7
  631. {$IFNDEF COMPILER7_UP}
  632. {$DEFINE CPUASM}
  633. {$ELSE}
  634. {$IFDEF ASSEMBLER}
  635. {$DEFINE CPUASM}
  636. {$ENDIF ASSEMBLER}
  637. {$ENDIF ~COMPILER7_UP}
  638. {$ENDIF ~CLR}
  639. {$ENDIF BORLAND}
  640. {------------------------------------------------------------------------------}
  641. { VERXXX to COMPILERX, DELPHIX and BCBX mappings }
  642. {------------------------------------------------------------------------------}
  643. {$IFDEF BORLAND}
  644. {$IFDEF KYLIX}
  645. {$I kylix.inc} // FPC incompatible stuff
  646. {$ELSE ~KYLIX}
  647. {$DEFINE UNKNOWN_COMPILER_VERSION}
  648. {$IFDEF VER80}
  649. {$DEFINE COMPILER1}
  650. {$DEFINE DELPHI1}
  651. {$DEFINE DELPHICOMPILER1}
  652. {$DEFINE RTL80_UP}
  653. {$UNDEF UNKNOWN_COMPILER_VERSION}
  654. {$ENDIF}
  655. {$IFDEF VER90}
  656. {$DEFINE COMPILER2}
  657. {$DEFINE DELPHI2}
  658. {$DEFINE DELPHICOMPILER2}
  659. {$DEFINE RTL90_UP}
  660. {$UNDEF UNKNOWN_COMPILER_VERSION}
  661. {$ENDIF}
  662. {$IFDEF VER93}
  663. {$DEFINE COMPILER2}
  664. {$DEFINE BCB1}
  665. {$DEFINE BCB}
  666. {$DEFINE RTL93_UP}
  667. {$UNDEF UNKNOWN_COMPILER_VERSION}
  668. {$ENDIF}
  669. {$IFDEF VER100}
  670. {$DEFINE COMPILER3}
  671. {$DEFINE DELPHI3}
  672. {$DEFINE DELPHICOMPILER3}
  673. {$DEFINE RTL100_UP}
  674. {$UNDEF UNKNOWN_COMPILER_VERSION}
  675. {$ENDIF}
  676. {$IFDEF VER110}
  677. {$DEFINE COMPILER35}
  678. {$DEFINE BCB3}
  679. {$DEFINE BCB}
  680. {$DEFINE RTL110_UP}
  681. {$UNDEF UNKNOWN_COMPILER_VERSION}
  682. {$ENDIF}
  683. {$IFDEF VER120}
  684. {$DEFINE COMPILER4}
  685. {$DEFINE DELPHI4}
  686. {$DEFINE DELPHICOMPILER4}
  687. {$DEFINE RTL120_UP}
  688. {$UNDEF UNKNOWN_COMPILER_VERSION}
  689. {$ENDIF}
  690. {$IFDEF VER125}
  691. {$DEFINE COMPILER4}
  692. {$DEFINE BCB4}
  693. {$DEFINE BCB}
  694. {$DEFINE RTL125_UP}
  695. {$UNDEF UNKNOWN_COMPILER_VERSION}
  696. {$ENDIF}
  697. {$IFDEF VER130}
  698. {$DEFINE COMPILER5}
  699. {$IFDEF BCB}
  700. {$DEFINE BCB5}
  701. {$ELSE}
  702. {$DEFINE DELPHI5}
  703. {$DEFINE DELPHICOMPILER5}
  704. {$ENDIF}
  705. {$DEFINE RTL130_UP}
  706. {$UNDEF UNKNOWN_COMPILER_VERSION}
  707. {$ENDIF}
  708. {$IFDEF VER140}
  709. {$DEFINE COMPILER6}
  710. {$IFDEF BCB}
  711. {$DEFINE BCB6}
  712. {$ELSE}
  713. {$DEFINE DELPHI6}
  714. {$DEFINE DELPHICOMPILER6}
  715. {$ENDIF}
  716. {$DEFINE RTL140_UP}
  717. {$UNDEF UNKNOWN_COMPILER_VERSION}
  718. {$ENDIF}
  719. {$IFDEF VER150}
  720. {$DEFINE COMPILER7}
  721. {$DEFINE DELPHI7}
  722. {$DEFINE DELPHICOMPILER7}
  723. {$DEFINE RTL150_UP}
  724. {$UNDEF UNKNOWN_COMPILER_VERSION}
  725. {$ENDIF}
  726. {$IFDEF VER160}
  727. {$DEFINE BDS2}
  728. {$DEFINE BDS}
  729. {$IFDEF CLR}
  730. {$DEFINE CLR10}
  731. {$ENDIF CLR}
  732. {$DEFINE COMPILER8}
  733. {$DEFINE DELPHI8}
  734. {$DEFINE DELPHICOMPILER8}
  735. {$DEFINE RTL160_UP}
  736. {$UNDEF UNKNOWN_COMPILER_VERSION}
  737. {$ENDIF}
  738. {$IFDEF VER170}
  739. {$DEFINE BDS3}
  740. {$DEFINE BDS}
  741. {$IFDEF CLR}
  742. {$DEFINE CLR11}
  743. {$ENDIF CLR}
  744. {$DEFINE COMPILER9}
  745. {$DEFINE DELPHI9}
  746. {$DEFINE DELPHI2005} // synonym to DELPHI9
  747. {$DEFINE DELPHICOMPILER9}
  748. {$DEFINE RTL170_UP}
  749. {$UNDEF UNKNOWN_COMPILER_VERSION}
  750. {$ENDIF}
  751. {$IFDEF VER180}
  752. {$DEFINE BDS}
  753. {$IFDEF CLR}
  754. {$DEFINE CLR11}
  755. {$ENDIF CLR}
  756. {$IFDEF VER185}
  757. {$DEFINE BDS5}
  758. {$DEFINE COMPILER11}
  759. {$IFDEF BCB}
  760. {$DEFINE BCB11}
  761. {$ELSE}
  762. {$DEFINE DELPHI11}
  763. {$DEFINE DELPHI2007} // synonym to DELPHI11
  764. {$DEFINE DELPHICOMPILER11}
  765. {$ENDIF}
  766. {$DEFINE RTL185_UP}
  767. {$ELSE ~~VER185}
  768. {$DEFINE BDS4}
  769. {$DEFINE COMPILER10}
  770. {$IFDEF BCB}
  771. {$DEFINE BCB10}
  772. {$ELSE}
  773. {$DEFINE DELPHI10}
  774. {$DEFINE DELPHI2006} // synonym to DELPHI10
  775. {$DEFINE DELPHICOMPILER10}
  776. {$ENDIF}
  777. {$DEFINE RTL180_UP}
  778. {$ENDIF ~VER185}
  779. {$UNDEF UNKNOWN_COMPILER_VERSION}
  780. {$ENDIF}
  781. {$IFDEF VER190} // Delphi 2007 for .NET
  782. {$DEFINE BDS}
  783. {$DEFINE BDS5}
  784. {$IFDEF CLR}
  785. {$DEFINE CLR20}
  786. {$ENDIF CLR}
  787. {$DEFINE COMPILER11}
  788. {$DEFINE DELPHI11}
  789. {$DEFINE DELPHI2007} // synonym to DELPHI11
  790. {$DEFINE DELPHICOMPILER11}
  791. {$DEFINE RTL190_UP}
  792. {$UNDEF UNKNOWN_COMPILER_VERSION}
  793. {$ENDIF VER190}
  794. {$IFDEF VER200} // RAD Studio 2009
  795. {$DEFINE BDS}
  796. {$DEFINE BDS6}
  797. {$IFDEF CLR}
  798. {$DEFINE CLR20}
  799. {$ENDIF CLR}
  800. {$DEFINE COMPILER12}
  801. {$IFDEF BCB}
  802. {$DEFINE BCB12}
  803. {$ELSE}
  804. {$DEFINE DELPHI12}
  805. {$DEFINE DELPHI2009} // synonym to DELPHI12
  806. {$DEFINE DELPHICOMPILER12}
  807. {$ENDIF BCB}
  808. {$IFDEF CLR}
  809. {$DEFINE RTL190_UP}
  810. {$ELSE}
  811. {$DEFINE RTL200_UP}
  812. {$ENDIF}
  813. {$UNDEF UNKNOWN_COMPILER_VERSION}
  814. {$ENDIF VER200}
  815. {$IFDEF VER210} // RAD Studio 2010
  816. {$DEFINE BDS}
  817. {$DEFINE BDS7}
  818. {$DEFINE COMPILER14}
  819. {$IFDEF BCB}
  820. {$DEFINE BCB14}
  821. {$ELSE}
  822. {$DEFINE DELPHI14}
  823. {$DEFINE DELPHI2010} // synonym to DELPHI14
  824. {$DEFINE DELPHICOMPILER14}
  825. {$ENDIF BCB}
  826. {$DEFINE RTL210_UP}
  827. {$UNDEF UNKNOWN_COMPILER_VERSION}
  828. {$ENDIF VER210}
  829. {$IFDEF VER220} // RAD Studio XE
  830. {$DEFINE BDS}
  831. {$DEFINE BDS8}
  832. {$DEFINE COMPILER15}
  833. {$IFDEF BCB}
  834. {$DEFINE BCB15}
  835. {$ELSE}
  836. {$DEFINE DELPHI15}
  837. {$DEFINE DELPHIXE} // synonym to DELPHI15
  838. {$DEFINE DELPHICOMPILER15}
  839. {$ENDIF BCB}
  840. {$DEFINE RTL220_UP}
  841. {$UNDEF UNKNOWN_COMPILER_VERSION}
  842. {$ENDIF VER220}
  843. {$IFDEF VER230} // RAD Studio XE2
  844. {$DEFINE BDS}
  845. {$DEFINE BDS9}
  846. {$DEFINE COMPILER16}
  847. {$IFDEF BCB}
  848. {$DEFINE BCB16}
  849. {$ELSE}
  850. {$DEFINE DELPHI16}
  851. {$DEFINE DELPHIXE2} // synonym to DELPHI16
  852. {$DEFINE DELPHICOMPILER16}
  853. {$ENDIF BCB}
  854. {$DEFINE RTL230_UP}
  855. {$UNDEF UNKNOWN_COMPILER_VERSION}
  856. {$ENDIF VER230}
  857. {$IFDEF VER240} // RAD Studio XE3
  858. {$DEFINE BDS}
  859. {$DEFINE BDS10}
  860. {$DEFINE COMPILER17}
  861. {$IFDEF BCB}
  862. {$DEFINE BCB17}
  863. {$ELSE}
  864. {$DEFINE DELPHI17}
  865. {$DEFINE DELPHIXE3} // synonym to DELPHI17
  866. {$DEFINE DELPHICOMPILER17}
  867. {$ENDIF BCB}
  868. {$DEFINE RTL240_UP}
  869. {$UNDEF UNKNOWN_COMPILER_VERSION}
  870. {$ENDIF VER240}
  871. {$IFDEF VER250} // RAD Studio XE4
  872. {$DEFINE BDS}
  873. {$DEFINE BDS11}
  874. {$DEFINE COMPILER18}
  875. {$IFDEF BCB}
  876. {$DEFINE BCB18}
  877. {$ELSE}
  878. {$DEFINE DELPHI18}
  879. {$DEFINE DELPHIXE4} // synonym to DELPHI18
  880. {$DEFINE DELPHICOMPILER18}
  881. {$ENDIF BCB}
  882. {$DEFINE RTL250_UP}
  883. {$UNDEF UNKNOWN_COMPILER_VERSION}
  884. {$ENDIF VER250}
  885. {$IFDEF VER260} // RAD Studio XE5
  886. {$DEFINE BDS}
  887. {$DEFINE BDS12}
  888. {$DEFINE COMPILER19}
  889. {$IFDEF BCB}
  890. {$DEFINE BCB19}
  891. {$ELSE}
  892. {$DEFINE DELPHI19}
  893. {$DEFINE DELPHIXE5} // synonym to DELPHI19
  894. {$DEFINE DELPHICOMPILER19}
  895. {$ENDIF BCB}
  896. {$DEFINE RTL260_UP}
  897. {$UNDEF UNKNOWN_COMPILER_VERSION}
  898. {$ENDIF VER260}
  899. {$IFDEF VER270} // RAD Studio XE6
  900. {$DEFINE BDS}
  901. {$DEFINE BDS14}
  902. {$DEFINE COMPILER20}
  903. {$IFDEF BCB}
  904. {$DEFINE BCB20}
  905. {$ELSE}
  906. {$DEFINE DELPHI20}
  907. {$DEFINE DELPHIXE6} // synonym to DELPHI20
  908. {$DEFINE DELPHICOMPILER20}
  909. {$ENDIF BCB}
  910. {$DEFINE RTL270_UP}
  911. {$DEFINE RTL_270_OR_FPC}
  912. {$UNDEF UNKNOWN_COMPILER_VERSION}
  913. {$ENDIF VER270}
  914. {$IFDEF VER280} // RAD Studio XE7
  915. {$DEFINE BDS}
  916. {$DEFINE BDS15}
  917. {$DEFINE COMPILER21}
  918. {$IFDEF BCB}
  919. {$DEFINE BCB21}
  920. {$ELSE}
  921. {$DEFINE DELPHI21}
  922. {$DEFINE DELPHIXE7} // synonym to DELPHI21
  923. {$DEFINE DELPHICOMPILER21}
  924. {$ENDIF BCB}
  925. {$DEFINE RTL280_UP}
  926. {$UNDEF UNKNOWN_COMPILER_VERSION}
  927. {$ENDIF VER280}
  928. {$IFDEF VER290} // RAD Studio XE8
  929. {$DEFINE BDS}
  930. {$DEFINE BDS16}
  931. {$DEFINE COMPILER22}
  932. {$IFDEF BCB}
  933. {$DEFINE BCB22}
  934. {$ELSE}
  935. {$DEFINE DELPHI22}
  936. {$DEFINE DELPHIXE8} // synonym to DELPHI22
  937. {$DEFINE DELPHICOMPILER22}
  938. {$ENDIF BCB}
  939. {$DEFINE RTL290_UP}
  940. {$UNDEF UNKNOWN_COMPILER_VERSION}
  941. {$ENDIF VER290}
  942. {$IFDEF VER300} // RAD Studio 10
  943. {$DEFINE BDS}
  944. {$DEFINE BDS17}
  945. {$DEFINE COMPILER23}
  946. {$IFDEF BCB}
  947. {$DEFINE BCB23}
  948. {$ELSE}
  949. {$DEFINE DELPHI23}
  950. {$DEFINE DELPHIX_SEATTLE} // synonym to DELPHI23
  951. {$DEFINE DELPHICOMPILER23}
  952. {$ENDIF BCB}
  953. {$DEFINE RTL300_UP}
  954. {$UNDEF UNKNOWN_COMPILER_VERSION}
  955. {$ENDIF VER300}
  956. {$IFDEF VER310} // RAD Studio 10.1
  957. {$DEFINE BDS}
  958. {$DEFINE BDS18}
  959. {$DEFINE COMPILER24}
  960. {$IFDEF BCB}
  961. {$DEFINE BCB24}
  962. {$ELSE}
  963. {$DEFINE DELPHI24}
  964. {$DEFINE DELPHIX_BERLIN} // synonym to DELPHI24
  965. {$DEFINE DELPHICOMPILER24}
  966. {$ENDIF BCB}
  967. {$DEFINE RTL310_UP}
  968. {$UNDEF UNKNOWN_COMPILER_VERSION}
  969. {$ENDIF VER310}
  970. {$IFDEF VER320} // RAD Studio 10.2
  971. {$DEFINE BDS}
  972. {$DEFINE BDS19}
  973. {$DEFINE COMPILER25}
  974. {$IFDEF BCB}
  975. {$DEFINE BCB25}
  976. {$ELSE}
  977. {$DEFINE DELPHI25}
  978. {$DEFINE DELPHIX_TOKYO} // synonym to DELPHI25
  979. {$DEFINE DELPHICOMPILER25}
  980. {$ENDIF BCB}
  981. {$DEFINE RTL320_UP}
  982. {$UNDEF UNKNOWN_COMPILER_VERSION}
  983. {$ENDIF VER320}
  984. {$IFDEF VER330} // RAD Studio 10.3
  985. {$DEFINE BDS}
  986. {$DEFINE BDS20}
  987. {$DEFINE COMPILER26}
  988. {$IFDEF BCB}
  989. {$DEFINE BCB26}
  990. {$ELSE}
  991. {$DEFINE DELPHI26}
  992. {$DEFINE DELPHIX_RIO} // synonym to DELPHI26
  993. {$DEFINE DELPHICOMPILER26}
  994. {$ENDIF BCB}
  995. {$DEFINE RTL330_UP}
  996. {$UNDEF UNKNOWN_COMPILER_VERSION}
  997. {$ENDIF VER330}
  998. {$IFDEF VER340} // RAD Studio 10.4
  999. {$DEFINE BDS}
  1000. {$DEFINE BDS21}
  1001. {$DEFINE COMPILER27}
  1002. {$IFDEF BCB}
  1003. {$DEFINE BCB27}
  1004. {$ELSE}
  1005. {$DEFINE DELPHI27}
  1006. {$DEFINE DELPHICOMPILER27}
  1007. {$ENDIF BCB}
  1008. {$DEFINE RTL340_UP}
  1009. {$UNDEF UNKNOWN_COMPILER_VERSION}
  1010. {$ENDIF VER340}
  1011. {$IFDEF UNKNOWN_COMPILER_VERSION} // adjust for newer version (always use latest version)
  1012. {$DEFINE BDS}
  1013. {$DEFINE BDS21}
  1014. {$DEFINE COMPILER27}
  1015. {$IFDEF BCB}
  1016. {$DEFINE BCB27}
  1017. {$ELSE}
  1018. {$DEFINE DELPHI27}
  1019. {$DEFINE DELPHICOMPILER27}
  1020. {$ENDIF BCB}
  1021. {$DEFINE RTL340_UP}
  1022. {$UNDEF UNKNOWN_COMPILER_VERSION}
  1023. {$ENDIF}
  1024. {$ENDIF ~KYLIX}
  1025. {$IFDEF BCB}
  1026. {$DEFINE CPPBUILDER}
  1027. {$DEFINE BCBCOMPILER}
  1028. {$ELSE ~BCB}
  1029. {$DEFINE DELPHI}
  1030. {$DEFINE DELPHICOMPILER}
  1031. {$ENDIF ~BCB}
  1032. {$ENDIF BORLAND}
  1033. {------------------------------------------------------------------------------}
  1034. { DELPHIX_UP from DELPHIX mappings }
  1035. {------------------------------------------------------------------------------}
  1036. {$IFDEF DELPHI27} {$DEFINE DELPHI27_UP} {$ENDIF}
  1037. {$IFDEF DELPHI26} {$DEFINE DELPHI26_UP} {$ENDIF}
  1038. {$IFDEF DELPHI25} {$DEFINE DELPHI25_UP} {$ENDIF}
  1039. {$IFDEF DELPHI24} {$DEFINE DELPHI24_UP} {$ENDIF}
  1040. {$IFDEF DELPHI23} {$DEFINE DELPHI23_UP} {$ENDIF}
  1041. {$IFDEF DELPHI22} {$DEFINE DELPHI22_UP} {$ENDIF}
  1042. {$IFDEF DELPHI21} {$DEFINE DELPHI21_UP} {$ENDIF}
  1043. {$IFDEF DELPHI20} {$DEFINE DELPHI20_UP} {$ENDIF}
  1044. {$IFDEF DELPHI19} {$DEFINE DELPHI19_UP} {$ENDIF}
  1045. {$IFDEF DELPHI18} {$DEFINE DELPHI18_UP} {$ENDIF}
  1046. {$IFDEF DELPHI17} {$DEFINE DELPHI17_UP} {$ENDIF}
  1047. {$IFDEF DELPHI16} {$DEFINE DELPHI16_UP} {$ENDIF}
  1048. {$IFDEF DELPHI15} {$DEFINE DELPHI15_UP} {$ENDIF}
  1049. {$IFDEF DELPHI14} {$DEFINE DELPHI14_UP} {$ENDIF}
  1050. {$IFDEF DELPHI12} {$DEFINE DELPHI12_UP} {$ENDIF}
  1051. {$IFDEF DELPHI11} {$DEFINE DELPHI11_UP} {$ENDIF}
  1052. {$IFDEF DELPHI10} {$DEFINE DELPHI10_UP} {$ENDIF}
  1053. {$IFDEF DELPHI9} {$DEFINE DELPHI9_UP} {$ENDIF}
  1054. {$IFDEF DELPHI8} {$DEFINE DELPHI8_UP} {$ENDIF}
  1055. {$IFDEF DELPHI7} {$DEFINE DELPHI7_UP} {$ENDIF}
  1056. {$IFDEF DELPHI6} {$DEFINE DELPHI6_UP} {$ENDIF}
  1057. {$IFDEF DELPHI5} {$DEFINE DELPHI5_UP} {$ENDIF}
  1058. {$IFDEF DELPHI4} {$DEFINE DELPHI4_UP} {$ENDIF}
  1059. {$IFDEF DELPHI3} {$DEFINE DELPHI3_UP} {$ENDIF}
  1060. {$IFDEF DELPHI2} {$DEFINE DELPHI2_UP} {$ENDIF}
  1061. {$IFDEF DELPHI1} {$DEFINE DELPHI1_UP} {$ENDIF}
  1062. {------------------------------------------------------------------------------}
  1063. { DELPHIX_UP from DELPHIX_UP mappings }
  1064. {------------------------------------------------------------------------------}
  1065. {$IFDEF DELPHI27_UP}
  1066. {$DEFINE DELPHI26_UP}
  1067. {$ENDIF}
  1068. {$IFDEF DELPHI26_UP}
  1069. {$DEFINE DELPHIX_RIO_UP} // synonym to DELPHI26_UP
  1070. {$DEFINE DELPHI25_UP}
  1071. {$ENDIF}
  1072. {$IFDEF DELPHI25_UP}
  1073. {$DEFINE DELPHIX_TOKYO_UP} // synonym to DELPHI25_UP
  1074. {$DEFINE DELPHI24_UP}
  1075. {$ENDIF}
  1076. {$IFDEF DELPHI24_UP}
  1077. {$DEFINE DELPHIX_BERLIN_UP} // synonym to DELPHI24_UP
  1078. {$DEFINE DELPHI23_UP}
  1079. {$ENDIF}
  1080. {$IFDEF DELPHI23_UP}
  1081. {$DEFINE DELPHIX_SEATTLE_UP} // synonym to DELPHI23_UP
  1082. {$DEFINE DELPHI22_UP}
  1083. {$ENDIF}
  1084. {$IFDEF DELPHI22_UP}
  1085. {$DEFINE DELPHIXE8_UP} // synonym to DELPHI22_UP
  1086. {$DEFINE DELPHI21_UP}
  1087. {$ENDIF}
  1088. {$IFDEF DELPHI21_UP}
  1089. {$DEFINE DELPHIXE7_UP} // synonym to DELPHI21_UP
  1090. {$DEFINE DELPHI20_UP}
  1091. {$ENDIF}
  1092. {$IFDEF DELPHI20_UP}
  1093. {$DEFINE DELPHIXE6_UP} // synonym to DELPHI20_UP
  1094. {$DEFINE DELPHI19_UP}
  1095. {$ENDIF}
  1096. {$IFDEF DELPHI19_UP}
  1097. {$DEFINE DELPHIXE5_UP} // synonym to DELPHI19_UP
  1098. {$DEFINE DELPHI18_UP}
  1099. {$ENDIF}
  1100. {$IFDEF DELPHI18_UP}
  1101. {$DEFINE DELPHIXE4_UP} // synonym to DELPHI18_UP
  1102. {$DEFINE DELPHI17_UP}
  1103. {$ENDIF}
  1104. {$IFDEF DELPHI17_UP}
  1105. {$DEFINE DELPHIXE3_UP} // synonym to DELPHI17_UP
  1106. {$DEFINE DELPHI16_UP}
  1107. {$ENDIF}
  1108. {$IFDEF DELPHI16_UP}
  1109. {$DEFINE DELPHIXE2_UP} // synonym to DELPHI16_UP
  1110. {$DEFINE DELPHI15_UP}
  1111. {$ENDIF}
  1112. {$IFDEF DELPHI15_UP}
  1113. {$DEFINE DELPHIXE_UP} // synonym to DELPHI15_UP
  1114. {$DEFINE DELPHI14_UP}
  1115. {$ENDIF}
  1116. {$IFDEF DELPHI14_UP}
  1117. {$DEFINE DELPHI2010_UP} // synonym to DELPHI14_UP
  1118. {$DEFINE DELPHI12_UP}
  1119. {$ENDIF}
  1120. {$IFDEF DELPHI12_UP}
  1121. {$DEFINE DELPHI2009_UP} // synonym to DELPHI12_UP
  1122. {$DEFINE DELPHI11_UP}
  1123. {$ENDIF}
  1124. {$IFDEF DELPHI11_UP}
  1125. {$DEFINE DELPHI2007_UP} // synonym to DELPHI11_UP
  1126. {$DEFINE DELPHI10_UP}
  1127. {$ENDIF}
  1128. {$IFDEF DELPHI10_UP}
  1129. {$DEFINE DELPHI2006_UP} // synonym to DELPHI10_UP
  1130. {$DEFINE DELPHI9_UP}
  1131. {$ENDIF}
  1132. {$IFDEF DELPHI9_UP}
  1133. {$DEFINE DELPHI2005_UP} // synonym to DELPHI9_UP
  1134. {$DEFINE DELPHI8_UP}
  1135. {$ENDIF}
  1136. {$IFDEF DELPHI8_UP} {$DEFINE DELPHI7_UP} {$ENDIF}
  1137. {$IFDEF DELPHI7_UP} {$DEFINE DELPHI6_UP} {$ENDIF}
  1138. {$IFDEF DELPHI6_UP} {$DEFINE DELPHI5_UP} {$ENDIF}
  1139. {$IFDEF DELPHI5_UP} {$DEFINE DELPHI4_UP} {$ENDIF}
  1140. {$IFDEF DELPHI4_UP} {$DEFINE DELPHI3_UP} {$ENDIF}
  1141. {$IFDEF DELPHI3_UP} {$DEFINE DELPHI2_UP} {$ENDIF}
  1142. {$IFDEF DELPHI2_UP} {$DEFINE DELPHI1_UP} {$ENDIF}
  1143. {------------------------------------------------------------------------------}
  1144. { BCBX_UP from BCBX mappings }
  1145. {------------------------------------------------------------------------------}
  1146. {$IFDEF BCB27} {$DEFINE BCB27_UP} {$ENDIF}
  1147. {$IFDEF BCB26} {$DEFINE BCB26_UP} {$ENDIF}
  1148. {$IFDEF BCB25} {$DEFINE BCB25_UP} {$ENDIF}
  1149. {$IFDEF BCB24} {$DEFINE BCB24_UP} {$ENDIF}
  1150. {$IFDEF BCB23} {$DEFINE BCB23_UP} {$ENDIF}
  1151. {$IFDEF BCB22} {$DEFINE BCB22_UP} {$ENDIF}
  1152. {$IFDEF BCB21} {$DEFINE BCB21_UP} {$ENDIF}
  1153. {$IFDEF BCB20} {$DEFINE BCB20_UP} {$ENDIF}
  1154. {$IFDEF BCB19} {$DEFINE BCB19_UP} {$ENDIF}
  1155. {$IFDEF BCB18} {$DEFINE BCB18_UP} {$ENDIF}
  1156. {$IFDEF BCB17} {$DEFINE BCB17_UP} {$ENDIF}
  1157. {$IFDEF BCB16} {$DEFINE BCB16_UP} {$ENDIF}
  1158. {$IFDEF BCB15} {$DEFINE BCB15_UP} {$ENDIF}
  1159. {$IFDEF BCB14} {$DEFINE BCB14_UP} {$ENDIF}
  1160. {$IFDEF BCB12} {$DEFINE BCB12_UP} {$ENDIF}
  1161. {$IFDEF BCB11} {$DEFINE BCB11_UP} {$ENDIF}
  1162. {$IFDEF BCB10} {$DEFINE BCB10_UP} {$ENDIF}
  1163. {$IFDEF BCB6} {$DEFINE BCB6_UP} {$ENDIF}
  1164. {$IFDEF BCB5} {$DEFINE BCB5_UP} {$ENDIF}
  1165. {$IFDEF BCB4} {$DEFINE BCB4_UP} {$ENDIF}
  1166. {$IFDEF BCB3} {$DEFINE BCB3_UP} {$ENDIF}
  1167. {$IFDEF BCB1} {$DEFINE BCB1_UP} {$ENDIF}
  1168. {------------------------------------------------------------------------------}
  1169. { BCBX_UP from BCBX_UP mappings }
  1170. {------------------------------------------------------------------------------}
  1171. {$IFDEF BCB27_UP} {$DEFINE BCB26_UP} {$ENDIF}
  1172. {$IFDEF BCB26_UP} {$DEFINE BCB25_UP} {$ENDIF}
  1173. {$IFDEF BCB25_UP} {$DEFINE BCB24_UP} {$ENDIF}
  1174. {$IFDEF BCB24_UP} {$DEFINE BCB23_UP} {$ENDIF}
  1175. {$IFDEF BCB23_UP} {$DEFINE BCB22_UP} {$ENDIF}
  1176. {$IFDEF BCB22_UP} {$DEFINE BCB21_UP} {$ENDIF}
  1177. {$IFDEF BCB21_UP} {$DEFINE BCB20_UP} {$ENDIF}
  1178. {$IFDEF BCB20_UP} {$DEFINE BCB19_UP} {$ENDIF}
  1179. {$IFDEF BCB19_UP} {$DEFINE BCB18_UP} {$ENDIF}
  1180. {$IFDEF BCB18_UP} {$DEFINE BCB17_UP} {$ENDIF}
  1181. {$IFDEF BCB17_UP} {$DEFINE BCB16_UP} {$ENDIF}
  1182. {$IFDEF BCB16_UP} {$DEFINE BCB15_UP} {$ENDIF}
  1183. {$IFDEF BCB15_UP} {$DEFINE BCB14_UP} {$ENDIF}
  1184. {$IFDEF BCB14_UP} {$DEFINE BCB12_UP} {$ENDIF}
  1185. {$IFDEF BCB12_UP} {$DEFINE BCB11_UP} {$ENDIF}
  1186. {$IFDEF BCB11_UP} {$DEFINE BCB10_UP} {$ENDIF}
  1187. {$IFDEF BCB10_UP} {$DEFINE BCB6_UP} {$ENDIF}
  1188. {$IFDEF BCB6_UP} {$DEFINE BCB5_UP} {$ENDIF}
  1189. {$IFDEF BCB5_UP} {$DEFINE BCB4_UP} {$ENDIF}
  1190. {$IFDEF BCB4_UP} {$DEFINE BCB3_UP} {$ENDIF}
  1191. {$IFDEF BCB3_UP} {$DEFINE BCB1_UP} {$ENDIF}
  1192. {------------------------------------------------------------------------------}
  1193. { BDSX_UP from BDSX mappings }
  1194. {------------------------------------------------------------------------------}
  1195. {$IFDEF BDS21} {$DEFINE BDS21_UP} {$ENDIF}
  1196. {$IFDEF BDS20} {$DEFINE BDS20_UP} {$ENDIF}
  1197. {$IFDEF BDS19} {$DEFINE BDS19_UP} {$ENDIF}
  1198. {$IFDEF BDS18} {$DEFINE BDS18_UP} {$ENDIF}
  1199. {$IFDEF BDS17} {$DEFINE BDS17_UP} {$ENDIF}
  1200. {$IFDEF BDS16} {$DEFINE BDS16_UP} {$ENDIF}
  1201. {$IFDEF BDS15} {$DEFINE BDS15_UP} {$ENDIF}
  1202. {$IFDEF BDS14} {$DEFINE BDS14_UP} {$ENDIF}
  1203. {$IFDEF BDS12} {$DEFINE BDS12_UP} {$ENDIF}
  1204. {$IFDEF BDS11} {$DEFINE BDS11_UP} {$ENDIF}
  1205. {$IFDEF BDS10} {$DEFINE BDS10_UP} {$ENDIF}
  1206. {$IFDEF BDS9} {$DEFINE BDS9_UP} {$ENDIF}
  1207. {$IFDEF BDS8} {$DEFINE BDS8_UP} {$ENDIF}
  1208. {$IFDEF BDS7} {$DEFINE BDS7_UP} {$ENDIF}
  1209. {$IFDEF BDS6} {$DEFINE BDS6_UP} {$ENDIF}
  1210. {$IFDEF BDS5} {$DEFINE BDS5_UP} {$ENDIF}
  1211. {$IFDEF BDS4} {$DEFINE BDS4_UP} {$ENDIF}
  1212. {$IFDEF BDS3} {$DEFINE BDS3_UP} {$ENDIF}
  1213. {$IFDEF BDS2} {$DEFINE BDS2_UP} {$ENDIF}
  1214. {------------------------------------------------------------------------------}
  1215. { BDSX_UP from BDSX_UP mappings }
  1216. {------------------------------------------------------------------------------}
  1217. {$IFDEF BDS21_UP} {$DEFINE BDS20_UP} {$ENDIF}
  1218. {$IFDEF BDS20_UP} {$DEFINE BDS19_UP} {$ENDIF}
  1219. {$IFDEF BDS19_UP} {$DEFINE BDS18_UP} {$ENDIF}
  1220. {$IFDEF BDS18_UP} {$DEFINE BDS17_UP} {$ENDIF}
  1221. {$IFDEF BDS17_UP} {$DEFINE BDS16_UP} {$ENDIF}
  1222. {$IFDEF BDS16_UP} {$DEFINE BDS15_UP} {$ENDIF}
  1223. {$IFDEF BDS15_UP} {$DEFINE BDS14_UP} {$ENDIF}
  1224. {$IFDEF BDS14_UP} {$DEFINE BDS12_UP} {$ENDIF}
  1225. {$IFDEF BDS12_UP} {$DEFINE BDS11_UP} {$ENDIF}
  1226. {$IFDEF BDS11_UP} {$DEFINE BDS10_UP} {$ENDIF}
  1227. {$IFDEF BDS10_UP} {$DEFINE BDS9_UP} {$ENDIF}
  1228. {$IFDEF BDS9_UP} {$DEFINE BDS8_UP} {$ENDIF}
  1229. {$IFDEF BDS8_UP} {$DEFINE BDS7_UP} {$ENDIF}
  1230. {$IFDEF BDS7_UP} {$DEFINE BDS6_UP} {$ENDIF}
  1231. {$IFDEF BDS6_UP} {$DEFINE BDS5_UP} {$ENDIF}
  1232. {$IFDEF BDS5_UP} {$DEFINE BDS4_UP} {$ENDIF}
  1233. {$IFDEF BDS4_UP} {$DEFINE BDS3_UP} {$ENDIF}
  1234. {$IFDEF BDS3_UP} {$DEFINE BDS2_UP} {$ENDIF}
  1235. {------------------------------------------------------------------------------}
  1236. { DELPHICOMPILERX_UP from DELPHICOMPILERX mappings }
  1237. {------------------------------------------------------------------------------}
  1238. {$IFDEF DELPHICOMPILER27} {$DEFINE DELPHICOMPILER27_UP} {$ENDIF}
  1239. {$IFDEF DELPHICOMPILER26} {$DEFINE DELPHICOMPILER26_UP} {$ENDIF}
  1240. {$IFDEF DELPHICOMPILER25} {$DEFINE DELPHICOMPILER25_UP} {$ENDIF}
  1241. {$IFDEF DELPHICOMPILER24} {$DEFINE DELPHICOMPILER24_UP} {$ENDIF}
  1242. {$IFDEF DELPHICOMPILER23} {$DEFINE DELPHICOMPILER23_UP} {$ENDIF}
  1243. {$IFDEF DELPHICOMPILER22} {$DEFINE DELPHICOMPILER22_UP} {$ENDIF}
  1244. {$IFDEF DELPHICOMPILER21} {$DEFINE DELPHICOMPILER21_UP} {$ENDIF}
  1245. {$IFDEF DELPHICOMPILER20} {$DEFINE DELPHICOMPILER20_UP} {$ENDIF}
  1246. {$IFDEF DELPHICOMPILER19} {$DEFINE DELPHICOMPILER19_UP} {$ENDIF}
  1247. {$IFDEF DELPHICOMPILER18} {$DEFINE DELPHICOMPILER18_UP} {$ENDIF}
  1248. {$IFDEF DELPHICOMPILER17} {$DEFINE DELPHICOMPILER17_UP} {$ENDIF}
  1249. {$IFDEF DELPHICOMPILER16} {$DEFINE DELPHICOMPILER16_UP} {$ENDIF}
  1250. {$IFDEF DELPHICOMPILER15} {$DEFINE DELPHICOMPILER15_UP} {$ENDIF}
  1251. {$IFDEF DELPHICOMPILER14} {$DEFINE DELPHICOMPILER14_UP} {$ENDIF}
  1252. {$IFDEF DELPHICOMPILER12} {$DEFINE DELPHICOMPILER12_UP} {$ENDIF}
  1253. {$IFDEF DELPHICOMPILER11} {$DEFINE DELPHICOMPILER11_UP} {$ENDIF}
  1254. {$IFDEF DELPHICOMPILER10} {$DEFINE DELPHICOMPILER10_UP} {$ENDIF}
  1255. {$IFDEF DELPHICOMPILER9} {$DEFINE DELPHICOMPILER9_UP} {$ENDIF}
  1256. {$IFDEF DELPHICOMPILER8} {$DEFINE DELPHICOMPILER8_UP} {$ENDIF}
  1257. {$IFDEF DELPHICOMPILER7} {$DEFINE DELPHICOMPILER7_UP} {$ENDIF}
  1258. {$IFDEF DELPHICOMPILER6} {$DEFINE DELPHICOMPILER6_UP} {$ENDIF}
  1259. {$IFDEF DELPHICOMPILER5} {$DEFINE DELPHICOMPILER5_UP} {$ENDIF}
  1260. {$IFDEF DELPHICOMPILER4} {$DEFINE DELPHICOMPILER4_UP} {$ENDIF}
  1261. {$IFDEF DELPHICOMPILER3} {$DEFINE DELPHICOMPILER3_UP} {$ENDIF}
  1262. {$IFDEF DELPHICOMPILER2} {$DEFINE DELPHICOMPILER2_UP} {$ENDIF}
  1263. {$IFDEF DELPHICOMPILER1} {$DEFINE DELPHICOMPILER1_UP} {$ENDIF}
  1264. {------------------------------------------------------------------------------}
  1265. { DELPHICOMPILERX_UP from DELPHICOMPILERX_UP mappings }
  1266. {------------------------------------------------------------------------------}
  1267. {$IFDEF DELPHICOMPILER27_UP} {$DEFINE DELPHICOMPILER26_UP} {$ENDIF}
  1268. {$IFDEF DELPHICOMPILER26_UP} {$DEFINE DELPHICOMPILER25_UP} {$ENDIF}
  1269. {$IFDEF DELPHICOMPILER25_UP} {$DEFINE DELPHICOMPILER24_UP} {$ENDIF}
  1270. {$IFDEF DELPHICOMPILER24_UP} {$DEFINE DELPHICOMPILER23_UP} {$ENDIF}
  1271. {$IFDEF DELPHICOMPILER23_UP} {$DEFINE DELPHICOMPILER22_UP} {$ENDIF}
  1272. {$IFDEF DELPHICOMPILER22_UP} {$DEFINE DELPHICOMPILER21_UP} {$ENDIF}
  1273. {$IFDEF DELPHICOMPILER21_UP} {$DEFINE DELPHICOMPILER20_UP} {$ENDIF}
  1274. {$IFDEF DELPHICOMPILER20_UP} {$DEFINE DELPHICOMPILER19_UP} {$ENDIF}
  1275. {$IFDEF DELPHICOMPILER19_UP} {$DEFINE DELPHICOMPILER18_UP} {$ENDIF}
  1276. {$IFDEF DELPHICOMPILER18_UP} {$DEFINE DELPHICOMPILER17_UP} {$ENDIF}
  1277. {$IFDEF DELPHICOMPILER17_UP} {$DEFINE DELPHICOMPILER16_UP} {$ENDIF}
  1278. {$IFDEF DELPHICOMPILER16_UP} {$DEFINE DELPHICOMPILER15_UP} {$ENDIF}
  1279. {$IFDEF DELPHICOMPILER15_UP} {$DEFINE DELPHICOMPILER14_UP} {$ENDIF}
  1280. {$IFDEF DELPHICOMPILER14_UP} {$DEFINE DELPHICOMPILER12_UP} {$ENDIF}
  1281. {$IFDEF DELPHICOMPILER12_UP} {$DEFINE DELPHICOMPILER11_UP} {$ENDIF}
  1282. {$IFDEF DELPHICOMPILER11_UP} {$DEFINE DELPHICOMPILER10_UP} {$ENDIF}
  1283. {$IFDEF DELPHICOMPILER10_UP} {$DEFINE DELPHICOMPILER9_UP} {$ENDIF}
  1284. {$IFDEF DELPHICOMPILER9_UP} {$DEFINE DELPHICOMPILER8_UP} {$ENDIF}
  1285. {$IFDEF DELPHICOMPILER8_UP} {$DEFINE DELPHICOMPILER7_UP} {$ENDIF}
  1286. {$IFDEF DELPHICOMPILER8_UP} {$DEFINE DELPHICOMPILER7_UP} {$ENDIF}
  1287. {$IFDEF DELPHICOMPILER7_UP} {$DEFINE DELPHICOMPILER6_UP} {$ENDIF}
  1288. {$IFDEF DELPHICOMPILER6_UP} {$DEFINE DELPHICOMPILER5_UP} {$ENDIF}
  1289. {$IFDEF DELPHICOMPILER5_UP} {$DEFINE DELPHICOMPILER4_UP} {$ENDIF}
  1290. {$IFDEF DELPHICOMPILER4_UP} {$DEFINE DELPHICOMPILER3_UP} {$ENDIF}
  1291. {$IFDEF DELPHICOMPILER3_UP} {$DEFINE DELPHICOMPILER2_UP} {$ENDIF}
  1292. {$IFDEF DELPHICOMPILER2_UP} {$DEFINE DELPHICOMPILER1_UP} {$ENDIF}
  1293. {------------------------------------------------------------------------------}
  1294. { COMPILERX_UP from COMPILERX mappings }
  1295. {------------------------------------------------------------------------------}
  1296. {$IFDEF COMPILER27} {$DEFINE COMPILER27_UP} {$ENDIF}
  1297. {$IFDEF COMPILER26} {$DEFINE COMPILER26_UP} {$ENDIF}
  1298. {$IFDEF COMPILER25} {$DEFINE COMPILER25_UP} {$ENDIF}
  1299. {$IFDEF COMPILER24} {$DEFINE COMPILER24_UP} {$ENDIF}
  1300. {$IFDEF COMPILER23} {$DEFINE COMPILER23_UP} {$ENDIF}
  1301. {$IFDEF COMPILER22} {$DEFINE COMPILER22_UP} {$ENDIF}
  1302. {$IFDEF COMPILER21} {$DEFINE COMPILER21_UP} {$ENDIF}
  1303. {$IFDEF COMPILER20} {$DEFINE COMPILER20_UP} {$ENDIF}
  1304. {$IFDEF COMPILER19} {$DEFINE COMPILER19_UP} {$ENDIF}
  1305. {$IFDEF COMPILER18} {$DEFINE COMPILER18_UP} {$ENDIF}
  1306. {$IFDEF COMPILER17} {$DEFINE COMPILER17_UP} {$ENDIF}
  1307. {$IFDEF COMPILER16} {$DEFINE COMPILER16_UP} {$ENDIF}
  1308. {$IFDEF COMPILER15} {$DEFINE COMPILER15_UP} {$ENDIF}
  1309. {$IFDEF COMPILER14} {$DEFINE COMPILER14_UP} {$ENDIF}
  1310. {$IFDEF COMPILER12} {$DEFINE COMPILER12_UP} {$ENDIF}
  1311. {$IFDEF COMPILER11} {$DEFINE COMPILER11_UP} {$ENDIF}
  1312. {$IFDEF COMPILER10} {$DEFINE COMPILER10_UP} {$ENDIF}
  1313. {$IFDEF COMPILER9} {$DEFINE COMPILER9_UP} {$ENDIF}
  1314. {$IFDEF COMPILER8} {$DEFINE COMPILER8_UP} {$ENDIF}
  1315. {$IFDEF COMPILER7} {$DEFINE COMPILER7_UP} {$ENDIF}
  1316. {$IFDEF COMPILER6} {$DEFINE COMPILER6_UP} {$ENDIF}
  1317. {$IFDEF COMPILER5} {$DEFINE COMPILER5_UP} {$ENDIF}
  1318. {$IFDEF COMPILER4} {$DEFINE COMPILER4_UP} {$ENDIF}
  1319. {$IFDEF COMPILER35} {$DEFINE COMPILER35_UP} {$ENDIF}
  1320. {$IFDEF COMPILER3} {$DEFINE COMPILER3_UP} {$ENDIF}
  1321. {$IFDEF COMPILER2} {$DEFINE COMPILER2_UP} {$ENDIF}
  1322. {$IFDEF COMPILER1} {$DEFINE COMPILER1_UP} {$ENDIF}
  1323. {------------------------------------------------------------------------------}
  1324. { COMPILERX_UP from COMPILERX_UP mappings }
  1325. {------------------------------------------------------------------------------}
  1326. {$IFDEF COMPILER27_UP} {$DEFINE COMPILER26_UP} {$ENDIF}
  1327. {$IFDEF COMPILER26_UP} {$DEFINE COMPILER25_UP} {$ENDIF}
  1328. {$IFDEF COMPILER25_UP} {$DEFINE COMPILER24_UP} {$ENDIF}
  1329. {$IFDEF COMPILER24_UP} {$DEFINE COMPILER23_UP} {$ENDIF}
  1330. {$IFDEF COMPILER23_UP} {$DEFINE COMPILER22_UP} {$ENDIF}
  1331. {$IFDEF COMPILER22_UP} {$DEFINE COMPILER21_UP} {$ENDIF}
  1332. {$IFDEF COMPILER21_UP} {$DEFINE COMPILER20_UP} {$ENDIF}
  1333. {$IFDEF COMPILER20_UP} {$DEFINE COMPILER19_UP} {$ENDIF}
  1334. {$IFDEF COMPILER19_UP} {$DEFINE COMPILER18_UP} {$ENDIF}
  1335. {$IFDEF COMPILER18_UP} {$DEFINE COMPILER17_UP} {$ENDIF}
  1336. {$IFDEF COMPILER17_UP} {$DEFINE COMPILER16_UP} {$ENDIF}
  1337. {$IFDEF COMPILER16_UP} {$DEFINE COMPILER15_UP} {$ENDIF}
  1338. {$IFDEF COMPILER15_UP} {$DEFINE COMPILER14_UP} {$ENDIF}
  1339. {$IFDEF COMPILER14_UP} {$DEFINE COMPILER12_UP} {$ENDIF}
  1340. {$IFDEF COMPILER12_UP} {$DEFINE COMPILER11_UP} {$ENDIF}
  1341. {$IFDEF COMPILER11_UP} {$DEFINE COMPILER10_UP} {$ENDIF}
  1342. {$IFDEF COMPILER10_UP} {$DEFINE COMPILER9_UP} {$ENDIF}
  1343. {$IFDEF COMPILER9_UP} {$DEFINE COMPILER8_UP} {$ENDIF}
  1344. {$IFDEF COMPILER8_UP} {$DEFINE COMPILER7_UP} {$ENDIF}
  1345. {$IFDEF COMPILER7_UP} {$DEFINE COMPILER6_UP} {$ENDIF}
  1346. {$IFDEF COMPILER6_UP} {$DEFINE COMPILER5_UP} {$ENDIF}
  1347. {$IFDEF COMPILER5_UP} {$DEFINE COMPILER4_UP} {$ENDIF}
  1348. {$IFDEF COMPILER4_UP} {$DEFINE COMPILER35_UP} {$ENDIF}
  1349. {$IFDEF COMPILER35_UP} {$DEFINE COMPILER3_UP} {$ENDIF}
  1350. {$IFDEF COMPILER3_UP} {$DEFINE COMPILER2_UP} {$ENDIF}
  1351. {$IFDEF COMPILER2_UP} {$DEFINE COMPILER1_UP} {$ENDIF}
  1352. {------------------------------------------------------------------------------}
  1353. { RTLX_UP from RTLX_UP mappings }
  1354. {------------------------------------------------------------------------------}
  1355. {$IFDEF RTL340_UP} {$DEFINE RTL330_UP} {$ENDIF}
  1356. {$IFDEF RTL330_UP} {$DEFINE RTL320_UP} {$ENDIF}
  1357. {$IFDEF RTL320_UP} {$DEFINE RTL310_UP} {$ENDIF}
  1358. {$IFDEF RTL310_UP} {$DEFINE RTL300_UP} {$ENDIF}
  1359. {$IFDEF RTL300_UP} {$DEFINE RTL290_UP} {$ENDIF}
  1360. {$IFDEF RTL290_UP} {$DEFINE RTL280_UP} {$ENDIF}
  1361. {$IFDEF RTL280_UP} {$DEFINE RTL270_UP} {$ENDIF}
  1362. {$IFDEF RTL270_UP} {$DEFINE RTL260_UP} {$ENDIF}
  1363. {$IFDEF RTL260_UP} {$DEFINE RTL250_UP} {$ENDIF}
  1364. {$IFDEF RTL250_UP} {$DEFINE RTL240_UP} {$ENDIF}
  1365. {$IFDEF RTL240_UP} {$DEFINE RTL230_UP} {$ENDIF}
  1366. {$IFDEF RTL230_UP} {$DEFINE RTL220_UP} {$ENDIF}
  1367. {$IFDEF RTL220_UP} {$DEFINE RTL210_UP} {$ENDIF}
  1368. {$IFDEF RTL210_UP} {$DEFINE RTL200_UP} {$ENDIF}
  1369. {$IFDEF RTL200_UP} {$DEFINE RTL190_UP} {$ENDIF}
  1370. {$IFDEF RTL190_UP} {$DEFINE RTL185_UP} {$ENDIF}
  1371. {$IFDEF RTL185_UP} {$DEFINE RTL180_UP} {$ENDIF}
  1372. {$IFDEF RTL180_UP} {$DEFINE RTL170_UP} {$ENDIF}
  1373. {$IFDEF RTL170_UP} {$DEFINE RTL160_UP} {$ENDIF}
  1374. {$IFDEF RTL160_UP} {$DEFINE RTL150_UP} {$ENDIF}
  1375. {$IFDEF RTL150_UP} {$DEFINE RTL145_UP} {$ENDIF}
  1376. {$IFDEF RTL145_UP} {$DEFINE RTL142_UP} {$ENDIF}
  1377. {$IFDEF RTL142_UP} {$DEFINE RTL140_UP} {$ENDIF}
  1378. {$IFDEF RTL140_UP} {$DEFINE RTL130_UP} {$ENDIF}
  1379. {$IFDEF RTL130_UP} {$DEFINE RTL125_UP} {$ENDIF}
  1380. {$IFDEF RTL125_UP} {$DEFINE RTL120_UP} {$ENDIF}
  1381. {$IFDEF RTL120_UP} {$DEFINE RTL110_UP} {$ENDIF}
  1382. {$IFDEF RTL110_UP} {$DEFINE RTL100_UP} {$ENDIF}
  1383. {$IFDEF RTL100_UP} {$DEFINE RTL93_UP} {$ENDIF}
  1384. {$IFDEF RTL93_UP} {$DEFINE RTL90_UP} {$ENDIF}
  1385. {$IFDEF RTL90_UP} {$DEFINE RTL80_UP} {$ENDIF}
  1386. {$IFDEF FPC}
  1387. {$DEFINE RTL_270_OR_FPC}
  1388. {$DEFINE RTL_230_OR_FPC}
  1389. {$DEFINE RTL_220_OR_FPC}
  1390. {$DEFINE RTL_200_OR_FPC}
  1391. {$if Defined(FPC) and (FPC_FULLVERSION>= 30101)}
  1392. {$DEFINE RTL_220_OR_NEW_FPC} //New FPC
  1393. {$DEFINE RTL_200_OR_NEW_FPC} //New FPC
  1394. {$ELSE}
  1395. {$DEFINE RTL_OLD} //Old FPC
  1396. {$ENDIF}
  1397. {$ELSE}
  1398. {$IFDEF RTL200_UP}
  1399. {$DEFINE RTL_200_OR_FPC}
  1400. {$ENDIF}
  1401. {$IFDEF RTL220_UP}
  1402. {$DEFINE RTL_220_OR_FPC}
  1403. {$DEFINE RTL_220_OR_NEW_FPC}
  1404. {$ENDIF}
  1405. {$ENDIF}
  1406. {------------------------------------------------------------------------------}
  1407. { Check for CLR overrides of default detection }
  1408. {------------------------------------------------------------------------------}
  1409. {$IFDEF CLR}
  1410. {$IFDEF FORCE_CLR10}
  1411. {$DEFINE CLR10}
  1412. {$UNDEF CLR11}
  1413. {$UNDEF CLR20}
  1414. {$ENDIF FORCE_CLR10}
  1415. {$IFDEF FORCE_CLR11}
  1416. {$UNDEF CLR10}
  1417. {$DEFINE CLR11}
  1418. {$UNDEF CLR20}
  1419. {$ENDIF FORCE_CLR11}
  1420. {$IFDEF FORCE_CLR20}
  1421. {$UNDEF CLR10}
  1422. {$UNDEF CLR11}
  1423. {$DEFINE CLR20}
  1424. {$ENDIF FORCE_CLR20}
  1425. {$ENDIF CLR}
  1426. {------------------------------------------------------------------------------}
  1427. { CLRX from CLRX_UP mappings }
  1428. {------------------------------------------------------------------------------}
  1429. {$IFDEF CLR10} {$DEFINE CLR10_UP} {$ENDIF}
  1430. {$IFDEF CLR11} {$DEFINE CLR11_UP} {$ENDIF}
  1431. {$IFDEF CLR20} {$DEFINE CLR20_UP} {$ENDIF}
  1432. {------------------------------------------------------------------------------}
  1433. { CLRX_UP from CLRX_UP mappings }
  1434. {------------------------------------------------------------------------------}
  1435. {$IFDEF CLR20_UP} {$DEFINE CLR11_UP} {$ENDIF}
  1436. {$IFDEF CLR11_UP} {$DEFINE CLR10_UP} {$ENDIF}
  1437. {------------------------------------------------------------------------------}
  1438. {$IFDEF DELPHICOMPILER}
  1439. {$DEFINE DELPHILANGUAGE}
  1440. {$ENDIF}
  1441. {$IFDEF BCBCOMPILER}
  1442. {$DEFINE DELPHILANGUAGE}
  1443. {$ENDIF}
  1444. {------------------------------------------------------------------------------}
  1445. { KYLIXX_UP from KYLIXX mappings }
  1446. {------------------------------------------------------------------------------}
  1447. {$IFDEF KYLIX3} {$DEFINE KYLIX3_UP} {$ENDIF}
  1448. {$IFDEF KYLIX2} {$DEFINE KYLIX2_UP} {$ENDIF}
  1449. {$IFDEF KYLIX1} {$DEFINE KYLIX1_UP} {$ENDIF}
  1450. {------------------------------------------------------------------------------}
  1451. { KYLIXX_UP from KYLIXX_UP mappings }
  1452. {------------------------------------------------------------------------------}
  1453. {$IFDEF KYLIX3_UP} {$DEFINE KYLIX2_UP} {$ENDIF}
  1454. {$IFDEF KYLIX2_UP} {$DEFINE KYLIX1_UP} {$ENDIF}
  1455. {------------------------------------------------------------------------------}
  1456. { Map COMPILERX_UP to friendly feature names }
  1457. {------------------------------------------------------------------------------}
  1458. {$IFDEF FPC}
  1459. {$IFDEF VER1_0}
  1460. Please use FPC 2.0 or higher to compile this.
  1461. {$ELSE}
  1462. { FPC_FULLVERSION is available from 2.2.4 on }
  1463. {$DEFINE THREADSAFE}
  1464. {$DEFINE SUPPORTS_OUTPARAMS}
  1465. {$DEFINE SUPPORTS_WIDECHAR}
  1466. {$DEFINE SUPPORTS_WIDESTRING}
  1467. {$IF DEFINED(VER2_0) OR DEFINED(VER2_1)}
  1468. {$IFDEF HASINTF}
  1469. {$DEFINE SUPPORTS_INTERFACE}
  1470. {$ENDIF}
  1471. {$IFDEF HASVARIANT}
  1472. {$DEFINE SUPPORTS_VARIANT}
  1473. {$ENDIF}
  1474. {$IFDEF HASCURRENCY}
  1475. {$DEFINE SUPPORTS_CURRENCY}
  1476. {$ENDIF}
  1477. {$ELSE}
  1478. {$DEFINE SUPPORTS_INTERFACE}
  1479. {$DEFINE SUPPORTS_VARIANT}
  1480. {$DEFINE SUPPORTS_CURRENCY}
  1481. {$IFEND}
  1482. {$IFDEF FPC_HAS_TYPE_SINGLE}
  1483. {$DEFINE SUPPORTS_SINGLE}
  1484. {$ENDIF}
  1485. {$IFDEF FPC_HAS_TYPE_DOUBLE}
  1486. {$DEFINE SUPPORTS_DOUBLE}
  1487. {$ENDIF}
  1488. {$IFDEF FPC_HAS_TYPE_EXTENDED}
  1489. {$DEFINE SUPPORTS_EXTENDED}
  1490. {$ENDIF}
  1491. {$DEFINE SUPPORTS_THREADVAR}
  1492. {$DEFINE SUPPORTS_CONSTPARAMS}
  1493. {$DEFINE SUPPORTS_LONGWORD}
  1494. {$DEFINE SUPPORTS_INT64}
  1495. {$DEFINE SUPPORTS_DYNAMICARRAYS}
  1496. {$DEFINE SUPPORTS_DEFAULTPARAMS}
  1497. {$DEFINE SUPPORTS_OVERLOAD}
  1498. {$DEFINE ACCEPT_DEPRECATED} // 2.2 also gives warnings
  1499. {$DEFINE ACCEPT_PLATFORM} // 2.2 also gives warnings
  1500. {$DEFINE ACCEPT_LIBRARY}
  1501. {$DEFINE SUPPORTS_DEPRECATED}
  1502. {$DEFINE SUPPORTS_PLATFORM}
  1503. {$DEFINE SUPPORTS_LIBRARY}
  1504. {$DEFINE SUPPORTS_DEPRECATED_WARNINGS}
  1505. {$DEFINE SUPPORTS_PLATFORM_WARNINGS}
  1506. {$DEFINE SUPPORTS_EXTSYM}
  1507. {$DEFINE SUPPORTS_NODEFINE}
  1508. {$DEFINE SUPPORTS_DISPINTERFACE}
  1509. {$DEFINE SUPPORTS_IMPLEMENTS}
  1510. {$DEFINE SUPPORTS_DISPID}
  1511. {$DEFINE SUPPORTS_INLINE}
  1512. {$DEFINE SUPPORTS_STATIC}
  1513. {$DEFINE SUPPORTS_COMPILETIME_MESSAGES}
  1514. {$DEFINE SUPPORTS_CUSTOMVARIANTS}
  1515. {$DEFINE SUPPORTS_VARARGS}
  1516. {$DEFINE SUPPORTS_ENUMVALUE}
  1517. {$IFDEF LINUX}
  1518. {$DEFINE HAS_UNIT_LIBC}
  1519. {$ENDIF LINUX}
  1520. {$DEFINE HAS_UNIT_CONTNRS}
  1521. {$DEFINE HAS_UNIT_TYPES}
  1522. {$DEFINE HAS_UNIT_VARIANTS}
  1523. {$DEFINE HAS_UNIT_STRUTILS}
  1524. {$DEFINE HAS_UNIT_DATEUTILS}
  1525. {$DEFINE HAS_UNIT_RTLCONSTS}
  1526. {$DEFINE XPLATFORM_RTL}
  1527. {$IF DEFINED(FPC_FULLVERSION)}
  1528. { 2.2.4 or newer }
  1529. {$DEFINE SUPPORTS_SETPEFLAGS}
  1530. {$DEFINE SUPPORTS_STRICT}
  1531. {$IF defined(FPC_FULLVERSION) and (FPC_FULLVERSION >= 20400)}
  1532. {$DEFINE SUPPORTS_UINT64}
  1533. {$DEFINE SUPPORTS_EXPERIMENTAL_WARNINGS}
  1534. {$DEFINE SUPPORTS_REGION}
  1535. {$DEFINE SUPPORTS_UNICODE_STRING}
  1536. {$IFEND}
  1537. {$IF defined(FPC_FULLVERSION) and (FPC_FULLVERSION >= 20402)}
  1538. {$DEFINE SUPPORTS_FOR_IN}
  1539. {$IFEND}
  1540. {$IF defined(FPC_FULLVERSION) and (FPC_FULLVERSION >= 20600)}
  1541. {$DEFINE SUPPORTS_LIBRARY_WARNINGS}
  1542. {$DEFINE SUPPORTS_DEPRECATED_DETAILS}
  1543. {$DEFINE SUPPORTS_NESTED_TYPES}
  1544. {$DEFINE SUPPORTS_NESTED_CONSTANTS}
  1545. {$DEFINE SUPPORTS_ENHANCED_RECORDS} // called Advanced Records in FPC
  1546. {$DEFINE SUPPORTS_CLASS_FIELDS}
  1547. {$DEFINE SUPPORTS_CLASS_HELPERS}
  1548. {$DEFINE SUPPORTS_CLASS_OPERATORS}
  1549. {$DEFINE SUPPORTS_CLASS_CTORDTORS}
  1550. {$DEFINE SUPPORTS_FINAL}
  1551. {$DEFINE SUPPORTS_CAST_INTERFACE_TO_OBJ}
  1552. {$DEFINE HAS_ENOTIMPLEMENTED}
  1553. {$IFEND}
  1554. {$IF defined(FPC_FULLVERSION) and (FPC_FULLVERSION >= 20602)}
  1555. {$DEFINE SUPPORTS_INT_ALIASES}
  1556. {$DEFINE HAS_EARGUMENTEXCEPTION}
  1557. {$IFEND}
  1558. {$IF defined(FPC_FULLVERSION) and (FPC_FULLVERSION >= 30000)}
  1559. {$DEFINE SUPPORTS_GENERICS}
  1560. {$DEFINE SUPPORTS_GENERIC_TYPES}
  1561. {$DEFINE HAS_UNIT_CHARACTER}
  1562. {$IFEND}
  1563. {$IF defined(FPC_FULLVERSION) and (FPC_FULLVERSION >= 30200)}
  1564. {$DEFINE SUPPORTS_GENERIC_METHODS}
  1565. {$DEFINE SUPPORTS_GENERIC_ROUTINES}
  1566. {$DEFINE SUPPORTS_WEAKPACKAGEUNIT}
  1567. {$DEFINE HAS_UNIT_RTTI}
  1568. {$DEFINE HAS_UNIT_SYSTEM_UITYPES}
  1569. {$IFEND}
  1570. {$ELSE}
  1571. { older than 2.2.4 }
  1572. {$IFDEF VER2_2}
  1573. {$SUPPORTS_SETPEFLAGS}
  1574. {$SUPPORTS_STRICT}
  1575. {$ENDIF}
  1576. {$IFEND}
  1577. {$ENDIF}
  1578. {$ENDIF FPC}
  1579. {$IFDEF CLR}
  1580. {$DEFINE SUPPORTS_UNICODE}
  1581. {$ENDIF CLR}
  1582. {$IFDEF COMPILER1_UP}
  1583. {$DEFINE SUPPORTS_CONSTPARAMS}
  1584. {$DEFINE SUPPORTS_SINGLE}
  1585. {$DEFINE SUPPORTS_DOUBLE}
  1586. {$DEFINE SUPPORTS_EXTENDED}
  1587. {$DEFINE SUPPORTS_PACKAGES}
  1588. {$ENDIF COMPILER1_UP}
  1589. {$IFDEF COMPILER2_UP}
  1590. {$DEFINE SUPPORTS_CURRENCY}
  1591. {$DEFINE SUPPORTS_THREADVAR}
  1592. {$DEFINE SUPPORTS_VARIANT}
  1593. {$DEFINE SUPPORTS_WIDECHAR}
  1594. {$ENDIF COMPILER2_UP}
  1595. {$IFDEF COMPILER3_UP}
  1596. {$DEFINE SUPPORTS_OUTPARAMS}
  1597. {$DEFINE SUPPORTS_WIDESTRING}
  1598. {$DEFINE SUPPORTS_INTERFACE}
  1599. {$DEFINE SUPPORTS_DISPINTERFACE}
  1600. {$DEFINE SUPPORTS_DISPID}
  1601. {$DEFINE SUPPORTS_WEAKPACKAGEUNIT}
  1602. {$ENDIF COMPILER3_UP}
  1603. {$IFDEF COMPILER35_UP}
  1604. {$DEFINE SUPPORTS_EXTSYM}
  1605. {$DEFINE SUPPORTS_NODEFINE}
  1606. {$ENDIF COMPILER35_UP}
  1607. {$IFDEF COMPILER4_UP}
  1608. {$DEFINE SUPPORTS_LONGWORD}
  1609. {$DEFINE SUPPORTS_INT64}
  1610. {$DEFINE SUPPORTS_DYNAMICARRAYS}
  1611. {$DEFINE SUPPORTS_DEFAULTPARAMS}
  1612. {$DEFINE SUPPORTS_OVERLOAD}
  1613. {$DEFINE SUPPORTS_IMPLEMENTS}
  1614. {$ENDIF COMPILER4_UP}
  1615. {$IFDEF COMPILER6_UP}
  1616. {$DEFINE SUPPORTS_DEPRECATED}
  1617. {$DEFINE SUPPORTS_LIBRARY}
  1618. {$DEFINE SUPPORTS_PLATFORM}
  1619. {$DEFINE SUPPORTS_LOCAL}
  1620. {$DEFINE SUPPORTS_SETPEFLAGS}
  1621. {$DEFINE SUPPORTS_EXPERIMENTAL_WARNINGS}
  1622. {$DEFINE ACCEPT_DEPRECATED}
  1623. {$DEFINE ACCEPT_PLATFORM}
  1624. {$DEFINE ACCEPT_LIBRARY}
  1625. {$DEFINE SUPPORTS_DEPRECATED_WARNINGS}
  1626. {$DEFINE SUPPORTS_LIBRARY_WARNINGS}
  1627. {$DEFINE SUPPORTS_PLATFORM_WARNINGS}
  1628. {$DEFINE SUPPORTS_CUSTOMVARIANTS}
  1629. {$DEFINE SUPPORTS_VARARGS}
  1630. {$DEFINE SUPPORTS_ENUMVALUE}
  1631. {$DEFINE SUPPORTS_COMPILETIME_MESSAGES}
  1632. {$ENDIF COMPILER6_UP}
  1633. {$IFDEF COMPILER7_UP}
  1634. {$DEFINE SUPPORTS_UNSAFE_WARNINGS}
  1635. {$DEFINE SUPPORTS_UINT64}
  1636. {$ENDIF COMPILER7_UP}
  1637. {$IFDEF COMPILER9_UP}
  1638. {$DEFINE SUPPORTS_FOR_IN}
  1639. {$DEFINE SUPPORTS_INLINE}
  1640. {$DEFINE SUPPORTS_NESTED_CONSTANTS}
  1641. {$DEFINE SUPPORTS_NESTED_TYPES}
  1642. {$DEFINE SUPPORTS_REGION}
  1643. {$IFDEF CLR}
  1644. {$DEFINE SUPPORTS_ENHANCED_RECORDS}
  1645. {$DEFINE SUPPORTS_CLASS_FIELDS}
  1646. {$DEFINE SUPPORTS_CLASS_HELPERS}
  1647. {$DEFINE SUPPORTS_CLASS_OPERATORS}
  1648. {$DEFINE SUPPORTS_STRICT}
  1649. {$DEFINE SUPPORTS_STATIC}
  1650. {$DEFINE SUPPORTS_FINAL}
  1651. {$ENDIF CLR}
  1652. {$ENDIF COMPILER9_UP}
  1653. {$IFDEF COMPILER10_UP}
  1654. {$DEFINE SUPPORTS_ENHANCED_RECORDS}
  1655. {$DEFINE SUPPORTS_CLASS_FIELDS}
  1656. {$DEFINE SUPPORTS_CLASS_HELPERS}
  1657. {$DEFINE SUPPORTS_CLASS_OPERATORS}
  1658. {$DEFINE SUPPORTS_STRICT}
  1659. {$DEFINE SUPPORTS_STATIC}
  1660. {$DEFINE SUPPORTS_FINAL}
  1661. {$DEFINE SUPPORTS_METHODINFO}
  1662. {$ENDIF COMPILER10_UP}
  1663. {$IFDEF COMPILER11_UP}
  1664. {$IFDEF CLR}
  1665. {$DEFINE SUPPORTS_GENERICS}
  1666. {$DEFINE SUPPORTS_GENERIC_TYPES}
  1667. {$DEFINE SUPPORTS_GENERIC_METHODS}
  1668. {$DEFINE SUPPORTS_DEPRECATED_DETAILS}
  1669. {$ENDIF CLR}
  1670. {$ENDIF COMPILER11_UP}
  1671. {$IFDEF COMPILER12_UP}
  1672. {$DEFINE SUPPORTS_GENERICS}
  1673. {$DEFINE SUPPORTS_GENERIC_TYPES}
  1674. {$DEFINE SUPPORTS_GENERIC_METHODS}
  1675. {$DEFINE SUPPORTS_DEPRECATED_DETAILS}
  1676. {$DEFINE SUPPORTS_INT_ALIASES}
  1677. {$IFNDEF CLR}
  1678. {$DEFINE SUPPORTS_UNICODE}
  1679. {$DEFINE SUPPORTS_UNICODE_STRING}
  1680. {$ENDIF CLR}
  1681. {$ENDIF COMPILER12_UP}
  1682. {$IFDEF COMPILER14_UP}
  1683. {$DEFINE SUPPORTS_CLASS_CTORDTORS}
  1684. {$DEFINE HAS_UNIT_RTTI}
  1685. {$DEFINE SUPPORTS_CAST_INTERFACE_TO_OBJ}
  1686. {$DEFINE SUPPORTS_DELAYED_LOADING}
  1687. {$ENDIF COMPILER14_UP}
  1688. {$IFDEF COMPILER16_UP}
  1689. {$DEFINE USE_64BIT_TYPES}
  1690. {$ENDIF COMPILER16_UP}
  1691. {$IFDEF COMPILER17_UP}
  1692. {$DEFINE SUPPORTS_LEGACYIFEND}
  1693. {$ENDIF COMPILER17_UP}
  1694. {$IFDEF RTL130_UP}
  1695. {$DEFINE HAS_UNIT_CONTNRS}
  1696. {$ENDIF RTL130_UP}
  1697. {$IFDEF RTL140_UP}
  1698. {$IFDEF LINUX}
  1699. {$DEFINE HAS_UNIT_LIBC}
  1700. {$ENDIF LINUX}
  1701. {$DEFINE HAS_UNIT_RTLCONSTS}
  1702. {$DEFINE HAS_UNIT_TYPES}
  1703. {$DEFINE HAS_UNIT_VARIANTS}
  1704. {$DEFINE HAS_UNIT_STRUTILS}
  1705. {$DEFINE HAS_UNIT_DATEUTILS}
  1706. {$DEFINE XPLATFORM_RTL}
  1707. {$ENDIF RTL140_UP}
  1708. {$IFDEF RTL150_UP}
  1709. {$DEFINE HAS_UNIT_UXTHEME}
  1710. {$ENDIF RTL150_UP}
  1711. {$IFDEF RTL170_UP}
  1712. {$DEFINE HAS_UNIT_HTTPPROD}
  1713. {$ENDIF RTL170_UP}
  1714. {$IFDEF RTL185_UP}
  1715. {$DEFINE HAS_UNIT_GIFIMG}
  1716. {$ENDIF RTL185_UP}
  1717. {$IFDEF RTL200_UP}
  1718. {$DEFINE HAS_UNIT_ANSISTRINGS}
  1719. {$DEFINE HAS_UNIT_PNGIMAGE}
  1720. {$DEFINE HAS_UNIT_CHARACTER}
  1721. {$DEFINE HAS_EXCEPTION_STACKTRACE}
  1722. {$ENDIF RTL200_UP}
  1723. {$IFDEF RTL210_UP}
  1724. {$DEFINE HAS_EARGUMENTEXCEPTION}
  1725. {$ENDIF RTL210_UP}
  1726. {$IFDEF RTL220_UP}
  1727. {$DEFINE HAS_UNIT_REGULAREXPRESSIONSAPI}
  1728. {$DEFINE HAS_ENOTIMPLEMENTED}
  1729. {$ENDIF RTL220_UP}
  1730. {$IFDEF RTL230_UP}
  1731. {$DEFINE HAS_UNITSCOPE}
  1732. {$DEFINE HAS_UNIT_SYSTEM_UITYPES}
  1733. {$DEFINE HAS_UNIT_VCL_THEMES}
  1734. {$DEFINE RTL_230_OR_FPC}
  1735. {$ENDIF RTL230_UP}
  1736. {$IFDEF RTL240_UP}
  1737. {$DEFINE HAS_UNIT_SYSTEM_ACTIONS}
  1738. {$DEFINE HAS_PROPERTY_STYLEELEMENTS}
  1739. {$ENDIF RTL240_UP}
  1740. {$IFDEF RTL250_UP}
  1741. {$DEFINE DEPRECATED_SYSUTILS_ANSISTRINGS}
  1742. {$DEFINE DEPRECATED_TCHARACTER}
  1743. {$ENDIF RTL250_UP}
  1744. {$IFDEF RTL270_UP}
  1745. {$DEFINE HAS_AUTOMATIC_DB_FIELDS}
  1746. {$ENDIF RTL270_UP}
  1747. {------------------------------------------------------------------------------}
  1748. { Cross-platform related defines }
  1749. {------------------------------------------------------------------------------}
  1750. {$IFNDEF CPUASM}
  1751. {$DEFINE PUREPASCAL}
  1752. {$ENDIF ~CPUASM}
  1753. {$IFDEF WIN32}
  1754. {$DEFINE MSWINDOWS} // predefined for D6+/BCB6+
  1755. {$DEFINE Win32API}
  1756. {$ENDIF}
  1757. {$IFDEF DELPHILANGUAGE}
  1758. {$IFDEF LINUX}
  1759. {$DEFINE UNIX}
  1760. {$ENDIF}
  1761. {$IFNDEF CONSOLE}
  1762. {$IFDEF LINUX}
  1763. {$DEFINE VisualCLX}
  1764. {$ENDIF}
  1765. {$IFNDEF VisualCLX}
  1766. {$DEFINE VCL}
  1767. {$ENDIF}
  1768. {$ENDIF ~CONSOLE}
  1769. {$ENDIF DELPHILANGUAGE}
  1770. {------------------------------------------------------------------------------}
  1771. { Compiler settings }
  1772. {------------------------------------------------------------------------------}
  1773. {$IFOPT A+} {$DEFINE ALIGN_ON} {$ENDIF}
  1774. {$IFOPT B+} {$DEFINE BOOLEVAL_ON} {$ENDIF}
  1775. {$IFDEF COMPILER2_UP}
  1776. {$IFOPT C+} {$DEFINE ASSERTIONS_ON} {$ENDIF}
  1777. {$ENDIF}
  1778. {$IFOPT D+} {$DEFINE DEBUGINFO_ON} {$ENDIF}
  1779. {$IFOPT G+} {$DEFINE IMPORTEDDATA_ON} {$ENDIF}
  1780. {$IFDEF COMPILER2_UP}
  1781. {$IFOPT H+} {$DEFINE LONGSTRINGS_ON} {$ENDIF}
  1782. {$ENDIF}
  1783. // Hints
  1784. {$IFOPT I+} {$DEFINE IOCHECKS_ON} {$ENDIF}
  1785. {$IFDEF COMPILER2_UP}
  1786. {$IFOPT J+} {$DEFINE WRITEABLECONST_ON} {$ENDIF}
  1787. {$ENDIF}
  1788. {$IFOPT L+} {$DEFINE LOCALSYMBOLS} {$DEFINE LOCALSYMBOLS_ON} {$ENDIF}
  1789. {$IFOPT M+} {$DEFINE TYPEINFO_ON} {$ENDIF}
  1790. {$IFOPT O+} {$DEFINE OPTIMIZATION_ON} {$ENDIF}
  1791. {$IFOPT P+} {$DEFINE OPENSTRINGS_ON} {$ENDIF}
  1792. {$IFOPT Q+} {$DEFINE OVERFLOWCHECKS_ON} {$ENDIF}
  1793. {$IFOPT R+} {$DEFINE RANGECHECKS_ON} {$ENDIF}
  1794. // Real compatibility
  1795. {$IFOPT T+} {$DEFINE TYPEDADDRESS_ON} {$ENDIF}
  1796. {$IFOPT U+} {$DEFINE SAFEDIVIDE_ON} {$ENDIF}
  1797. {$IFOPT V+} {$DEFINE VARSTRINGCHECKS_ON} {$ENDIF}
  1798. {$IFOPT W+} {$DEFINE STACKFRAMES_ON} {$ENDIF}
  1799. // Warnings
  1800. {$IFOPT X+} {$DEFINE EXTENDEDSYNTAX_ON} {$ENDIF}
  1801. // for Delphi/BCB trial versions remove the point from the line below
  1802. {.$UNDEF SUPPORTS_WEAKPACKAGEUNIT}
  1803. {$ENDIF ~JEDI_INC}