jedi.inc 36 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093
  1. {$IFNDEF JEDI_INC}
  2. {$DEFINE JEDI_INC}
  3. {******************************************************************************}
  4. { }
  5. { The contents of this file are subject to the Mozilla Public License }
  6. { Version 1.1 (the "License"); you may not use this file except in }
  7. { compliance with the License. You may obtain a copy of the License at }
  8. { http://www.mozilla.org/MPL/ }
  9. { }
  10. { Software distributed under the License is distributed on an "AS IS" basis, }
  11. { WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License }
  12. { for the specific language governing rights and limitations under the }
  13. { License. }
  14. { }
  15. { The Original Code is: jedi.inc. }
  16. { The Initial Developer of the Original Code is Project JEDI }
  17. { http://www.delphi-jedi.org }
  18. { }
  19. { Alternatively, the contents of this file may be used under the terms of }
  20. { the GNU Lesser General Public License (the "LGPL License"), in which case }
  21. { the provisions of the LGPL License are applicable instead of those above. }
  22. { If you wish to allow use of your version of this file only under the terms }
  23. { of the LGPL License and not to allow others to use your version of this }
  24. { file under the MPL, indicate your decision by deleting the provisions }
  25. { above and replace them with the notice and other provisions required by }
  26. { the LGPL License. If you do not delete the provisions above, a recipient }
  27. { may use your version of this file under either the MPL or the LGPL License. }
  28. { }
  29. { For more information about the LGPL: }
  30. { http://www.gnu.org/copyleft/lesser.html }
  31. { }
  32. {******************************************************************************}
  33. { }
  34. { This file defines various generic compiler directives used in different }
  35. { libraries, e.g. in the JEDI Code Library (JCL) and JEDI Visual Component }
  36. { Library Library (J-VCL). The directives in this file are of generic nature }
  37. { and consist mostly of mappings from the VERXXX directives defined by }
  38. { Delphi, C++ Builder and FPC to friendly names such as DELPHI5 and }
  39. { SUPPORTS_WIDESTRING. These friendly names are subsequently used in the }
  40. { libraries to test for compiler versions and/or whether the compiler }
  41. { supports certain features (such as widestrings or 64 bit integers. The }
  42. { libraries provide an additional, library specific, include file. For the }
  43. { JCL e.g. this is jcl.inc. These files should be included in source files }
  44. { instead of this file (which is pulled in automatically). }
  45. { }
  46. {******************************************************************************}
  47. // Last modified: $Date: 2005/04/04 07:56:11 $
  48. // For history see end of file
  49. (*
  50. - Development environment directives
  51. This file defines two directives to indicate which development environment the
  52. library is being compiled with. Currently this can either be Delphi, Kylix,
  53. C++ Builder or FPC.
  54. Directive Description
  55. ------------------------------------------------------------------------------
  56. DELPHI Defined if compiled with Delphi
  57. KYLIX Defined if compiled with Kylix
  58. DELPHICOMPILER Defined if compiled with Delphi or Kylix/Delphi
  59. BCB Defined if compiled with C++ Builder
  60. CPPBUILDER Defined if compiled with C++ Builder (alias for BCB)
  61. BCBCOMPILER Defined if compiled with C++ Builder or Kylix/C++
  62. DELPHILANGUAGE Defined if compiled with Delphi, Kylix or C++ Builder
  63. BORLAND Defined if compiled with Delphi, Kylix or C++ Builder
  64. FPC Defined if compiled with FPC
  65. - Platform Directives
  66. Platform directives are not all explicitly defined in this file, some are
  67. defined by the compiler itself. They are listed here only for completeness.
  68. Directive Description
  69. ------------------------------------------------------------------------------
  70. WIN32 Defined when target platform is 32 bit Windows
  71. MSWINDOWS Defined when target platform is 32 bit Windows
  72. LINUX Defined when target platform is Linux
  73. UNIX Defined when target platform is Linux or Unix
  74. - Visual library Directives
  75. The following directives indicate for a visual library. In a Delphi
  76. application you need to define VisualCLX in the project options, if you want
  77. to use the VisualCLX. Alternative you can use the IDE expert, which is distributed
  78. with the JCL to do this automatically.
  79. Directive Description
  80. ------------------------------------------------------------------------------
  81. COMPLIB_VCL Defined when application do not define VisualCLX, obsolete, use VCL
  82. COMPLIB_CLX Defined when application use the VisualCLX, obsolete, use VisualCLX
  83. VCL Defined when application do not define VisualCLX
  84. VisualCLX Defined when application use the VisualCLX
  85. - Delphi Versions
  86. The following directives are direct mappings from the VERXXX directives to a
  87. friendly name of the associated compiler. These directives are only defined if
  88. the compiler is Delphi (ie DELPHI is defined).
  89. Directive Description
  90. ------------------------------------------------------------------------------
  91. DELPHI1 Defined when compiling with Delphi 1
  92. DELPHI2 Defined when compiling with Delphi 2
  93. DELPHI3 Defined when compiling with Delphi 3
  94. DELPHI4 Defined when compiling with Delphi 4
  95. DELPHI5 Defined when compiling with Delphi 5
  96. DELPHI6 Defined when compiling with Delphi 6
  97. DELPHI7 Defined when compiling with Delphi 7
  98. DELPHI8 Defined when compiling with Delphi 8
  99. DELPHI9 Defined when compiling with Delphi 9
  100. DELPHI1_UP Defined when compiling with Delphi 1 or higher
  101. DELPHI2_UP Defined when compiling with Delphi 2 or higher
  102. DELPHI3_UP Defined when compiling with Delphi 3 or higher
  103. DELPHI4_UP Defined when compiling with Delphi 4 or higher
  104. DELPHI5_UP Defined when compiling with Delphi 5 or higher
  105. DELPHI6_UP Defined when compiling with Delphi 6 or higher
  106. DELPHI7_UP Defined when compiling with Delphi 7 or higher
  107. DELPHI8_UP Defined when compiling with Delphi 8 or higher
  108. DELPHI9_UP Defined when compiling with Delphi 9 or higher
  109. - Kylix Versions
  110. The following directives are direct mappings from the VERXXX directives to a
  111. friendly name of the associated compiler. These directives are only defined if
  112. the compiler is Kylix (ie KYLIX is defined).
  113. Directive Description
  114. ------------------------------------------------------------------------------
  115. KYLIX1 Defined when compiling with Kylix 1
  116. KYLIX2 Defined when compiling with Kylix 2
  117. KYLIX3 Defined when compiling with Kylix 3
  118. KYLIX1_UP Defined when compiling with Kylix 1 or higher
  119. KYLIX2_UP Defined when compiling with Kylix 2 or higher
  120. KYLIX3_UP Defined when compiling with Kylix 3 or higher
  121. - Delphi Compiler Versions (Delphi / Kylix, not in BCB mode)
  122. Directive Description
  123. ------------------------------------------------------------------------------
  124. DELPHICOMPILER1 Defined when compiling with Delphi 1
  125. DELPHICOMPILER2 Defined when compiling with Delphi 2
  126. DELPHICOMPILER3 Defined when compiling with Delphi 3
  127. DELPHICOMPILER4 Defined when compiling with Delphi 4
  128. DELPHICOMPILER5 Defined when compiling with Delphi 5
  129. DELPHICOMPILER6 Defined when compiling with Delphi 6 or Kylix 1, 2 or 3
  130. DELPHICOMPILER7 Defined when compiling with Delphi 7
  131. DELPHICOMPILER8 Defined when compiling with Delphi 8
  132. DELPHICOMPILER9 Defined when compiling with Delphi 9
  133. DELPHICOMPILER1_UP Defined when compiling with Delphi 1 or higher
  134. DELPHICOMPILER2_UP Defined when compiling with Delphi 2 or higher
  135. DELPHICOMPILER3_UP Defined when compiling with Delphi 3 or higher
  136. DELPHICOMPILER4_UP Defined when compiling with Delphi 4 or higher
  137. DELPHICOMPILER5_UP Defined when compiling with Delphi 5 or higher
  138. DELPHICOMPILER6_UP Defined when compiling with Delphi 6 or Kylix 1, 2 or 3 or higher
  139. DELPHICOMPILER7_UP Defined when compiling with Delphi 7 or higher
  140. DELPHICOMPILER8_UP Defined when compiling with Delphi 8 or higher
  141. DELPHICOMPILER9_UP Defined when compiling with Delphi 9 or higher
  142. - C++ Builder Versions
  143. The following directives are direct mappings from the VERXXX directives to a
  144. friendly name of the associated compiler. These directives are only defined if
  145. the compiler is C++ Builder (ie BCB is defined).
  146. Directive Description
  147. ------------------------------------------------------------------------------
  148. BCB1 Defined when compiling with C++ Builder 1
  149. BCB3 Defined when compiling with C++ Builder 3
  150. BCB4 Defined when compiling with C++ Builder 4
  151. BCB5 Defined when compiling with C++ Builder 5
  152. BCB6 Defined when compiling with C++ Builder 6
  153. BCB1_UP Defined when compiling with C++ Builder 1 or higher
  154. BCB3_UP Defined when compiling with C++ Builder 3 or higher
  155. BCB4_UP Defined when compiling with C++ Builder 4 or higher
  156. BCB5_UP Defined when compiling with C++ Builder 5 or higher
  157. BCB6_UP Defined when compiling with C++ Builder 6 or higher
  158. - Compiler Versions
  159. The following directives are direct mappings from the VERXXX directives to a
  160. friendly name of the associated compiler. Unlike the DELPHI_X and BCB_X
  161. directives, these directives are indepedent of the development environment.
  162. That is, they are defined regardless of whether compilation takes place using
  163. Delphi or C++ Builder.
  164. Directive Description
  165. ------------------------------------------------------------------------------
  166. COMPILER1 Defined when compiling with Delphi 1
  167. COMPILER2 Defined when compiling with Delphi 2 or C++ Builder 1
  168. COMPILER3 Defined when compiling with Delphi 3
  169. COMPILER35 Defined when compiling with C++ Builder 3
  170. COMPILER4 Defined when compiling with Delphi 4 or C++ Builder 4
  171. COMPILER5 Defined when compiling with Delphi 5 or C++ Builder 5
  172. COMPILER6 Defined when compiling with Delphi 6 or C++ Builder 6
  173. COMPILER7 Defined when compiling with Delphi 7
  174. COMPILER8 Defined when compiling with Delphi 8
  175. COMPILER9 Defined when compiling with Delphi 9
  176. COMPILER1_UP Defined when compiling with Delphi 1 or higher
  177. COMPILER2_UP Defined when compiling with Delphi 2 or C++ Builder 1 or higher
  178. COMPILER3_UP Defined when compiling with Delphi 3 or higher
  179. COMPILER35_UP Defined when compiling with C++ Builder 3 or higher
  180. COMPILER4_UP Defined when compiling with Delphi 4 or C++ Builder 4 or higher
  181. COMPILER5_UP Defined when compiling with Delphi 5 or C++ Builder 5 or higher
  182. COMPILER6_UP Defined when compiling with Delphi 6 or C++ Builder 6 or higher
  183. COMPILER7_UP Defined when compiling with Delphi 7
  184. COMPILER8_UP Defined when compiling with Delphi 8
  185. COMPILER9_UP Defined when compiling with Delphi 9
  186. - RTL Versions
  187. Use e.g. following to determine the exact RTL version since version 14.0:
  188. {$IFDEF CONDITIONALEXPRESSIONS}
  189. {$IF Declared(RTLVersion) and (RTLVersion >= 14.2)}
  190. // code for Delphi 6.02 or later, Kylix 2 or later, C++ Builder 6 or later
  191. ...
  192. {$IFEND}
  193. {$ENDIF}
  194. Directive Description
  195. ------------------------------------------------------------------------------
  196. RTL80_UP Defined when compiling with Delphi 1 or later
  197. RTL90_UP Defined when compiling with Delphi 2 or later
  198. RTL93_UP Defined when compiling with C++ Builder 1 or later
  199. RTL100_UP Defined when compiling with Delphi 3 or later
  200. RTL110_UP Defined when compiling with C++ Builder 3 or later
  201. RTL120_UP Defined when compiling with Delphi 4 or later
  202. RTL125_UP Defined when compiling with C++ Builder 4 or later
  203. RTL130_UP Defined when compiling with Delphi 5 or C++ Builder 5 or later
  204. RTL140_UP Defined when compiling with Delphi 6, Kylix 1, 2 or 3 or C++ Builder 6 or later
  205. RTL150_UP Defined when compiling with Delphi 7 or later
  206. RTL160_UP Defined when compiling with Delphi 8 or later
  207. RTL170_UP Defined when compiling with Delphi 9 or later
  208. - Feature Directives
  209. The features directives are used to test if the compiler supports specific
  210. features, such as method overloading, and adjust the sources accordingly. Use
  211. of these directives is preferred over the use of the DELPHI and COMPILER
  212. directives.
  213. Directive Description
  214. ------------------------------------------------------------------------------
  215. SUPPORTS_CONSTPARAMS Compiler supports const parameters (D1+)
  216. SUPPORTS_SINGLE Compiler supports the Single type (D1+)
  217. SUPPORTS_DOUBLE Compiler supports the Double type (D1+)
  218. SUPPORTS_EXTENDED Compiler supports the Extended type (D1+)
  219. SUPPORTS_CURRENCY Compiler supports the Currency type (D2+)
  220. SUPPORTS_THREADVAR Compiler supports threadvar declarations (D2+)
  221. SUPPORTS_OUTPARAMS Compiler supports out parameters (D3+)
  222. SUPPORTS_VARIANT Compiler supports variant (D2+)
  223. SUPPORTS_WIDECHAR Compiler supports the WideChar type (D2+)
  224. SUPPORTS_WIDESTRING Compiler supports the WideString type (D3+/BCB3+)
  225. SUPPORTS_INTERFACE Compiler supports interfaces (D3+/BCB3+)
  226. SUPPORTS_DISPINTERFACE Compiler supports dispinterfaces (D3+/BCB3+)
  227. SUPPORTS_EXTSYM Compiler supports the $EXTERNALSYM directive (D4+/BCB3+)
  228. SUPPORTS_NODEFINE Compiler supports the $NODEFINE directive (D4+/BCB3+)
  229. SUPPORTS_LONGWORD Compiler supports the LongWord type (unsigned 32 bit) (D4+/BCB4+)
  230. SUPPORTS_INT64 Compiler supports the Int64 type (D4+/BCB4+)
  231. SUPPORTS_DYNAMICARRAYS Compiler supports dynamic arrays (D4+/BCB4+)
  232. SUPPORTS_DEFAULTPARAMS Compiler supports default parameters (D4+/BCB4+)
  233. SUPPORTS_OVERLOAD Compiler supports overloading (D4+/BCB4+)
  234. SUPPORTS_IMPLEMENTS Compiler supports implements (D4+/BCB4+)
  235. SUPPORTS_DEPRECATED Compiler supports the deprecated directive (D6+/BCB6+)
  236. SUPPORTS_PLATFORM Compiler supports the platform directive (D6+/BCB6+)
  237. SUPPORTS_LIBRARY Compiler supports the library directive (D6+/BCB6+)
  238. SUPPORTS_LOCAL Compiler supports the local directive (D6+/BCB6+)
  239. ACCEPT_DEPRECATED Compiler supports or ignore the deprecated directive (D6/BCB6/FPC)
  240. ACCEPT_PLATFORM Compiler supports or ignore the platform directive (D6+/BCB6+)
  241. ACCEPT_LIBRARY Compiler supports or ignore the library directive (D6+/BCB6+)
  242. SUPPORTS_CUSTOMVARIANTS Compiler supports custom variants (D6+/BCB6+)
  243. SUPPORTS_VARARGS Compiler supports varargs (D6+/BCB6+)
  244. SUPPORTS_ENUMVALUE Compiler supports values for enums (D6+/BCB6+)
  245. SUPPORTS_DEPRECATED_WARNINGS Compiler supports deprecated warnings (D6+/BCB6+)
  246. SUPPORTS_LIBRARY_WARNINGS Compiler supports library warnings (D6+/BCB6+)
  247. SUPPORTS_PLATFORM_WARNINGS Compiler supports platform warnings (D6+/BCB6+)
  248. SUPPORTS_UNSAFE_WARNINGS Compiler supports unsafe warnings (D7)
  249. SUPPORTS_WEAKPACKAGEUNIT Compiler supports the WEAKPACKAGEUNIT directive
  250. SUPPORTS_COMPILETIME_MESSAGES Compiler supports the MESSAGE directive
  251. HAS_UNIT_LIBC The unit Libc exists (Kylix, FPC on Linux)
  252. HAS_UNIT_RTLCONSTS The unit RTLConsts exists (D6+/BCB6+)
  253. HAS_UNIT_TYPES The unit Types exists (D6+/BCB6+)
  254. HAS_UNIT_VARIANTS The unit Variants exists (D6+/BCB6+)
  255. HAS_UNIT_STRUTILS The unit StrUtils exists (D6+/BCB6+)
  256. XPLATFORM_RTL The RTL supports crossplatform function names (e.g. RaiseLastOSError) (D6+/BCB6+/FPC)
  257. - Compiler Settings
  258. The compiler settings directives indicate whether a specific compiler setting
  259. is in effect. This facilitates changing compiler settings locally in a more
  260. compact and readible manner.
  261. Directive Description
  262. ------------------------------------------------------------------------------
  263. ALIGN_ON Compiling in the A+ state (no alignment)
  264. BOOLEVAL_ON Compiling in the B+ state (complete boolean evaluation)
  265. ASSERTIONS_ON Compiling in the C+ state (assertions on)
  266. DEBUGINFO_ON Compiling in the D+ state (debug info generation on)
  267. IMPORTEDDATA_ON Compiling in the G+ state (creation of imported data references)
  268. LONGSTRINGS_ON Compiling in the H+ state (string defined as AnsiString)
  269. IOCHECKS_ON Compiling in the I+ state (I/O checking enabled)
  270. WRITEABLECONST_ON Compiling in the J+ state (typed constants can be modified)
  271. LOCALSYMBOLS Compiling in the L+ state (local symbol generation)
  272. TYPEINFO_ON Compiling in the M+ state (RTTI generation on)
  273. OPTIMIZATION_ON Compiling in the O+ state (code optimization on)
  274. OPENSTRINGS_ON Compiling in the P+ state (variable string parameters are openstrings)
  275. OVERFLOWCHECKS_ON Compiling in the Q+ state (overflow checing on)
  276. RANGECHECKS_ON Compiling in the R+ state (range checking on)
  277. TYPEDADDRESS_ON Compiling in the T+ state (pointers obtained using the @ operator are typed)
  278. SAFEDIVIDE_ON Compiling in the U+ state (save FDIV instruction through RTL emulation)
  279. VARSTRINGCHECKS_ON Compiling in the V+ state (type checking of shortstrings)
  280. STACKFRAMES_ON Compiling in the W+ state (generation of stack frames)
  281. EXTENDEDSYNTAX_ON Compiling in the X+ state (Delphi extended syntax enabled)
  282. *)
  283. {$DEFINE BORLAND}
  284. { Set FreePascal to Delphi mode }
  285. {$IFDEF FPC}
  286. {$MODE DELPHI}
  287. {$ASMMODE Intel}
  288. {$UNDEF BORLAND}
  289. {$ENDIF}
  290. {$IFDEF BORLAND}
  291. {$IFDEF LINUX}
  292. {$DEFINE KYLIX}
  293. {$ENDIF LINUX}
  294. {$ENDIF BORLAND}
  295. {------------------------------------------------------------------------------}
  296. { VERXXX to COMPILERX, DELPHIX and BCBX mappings }
  297. {------------------------------------------------------------------------------}
  298. {$IFDEF BORLAND}
  299. {$IFDEF KYLIX}
  300. {$I kylix.inc} // FPC incompatible stuff
  301. {$ELSE ~KYLIX}
  302. {$IFDEF VER170}
  303. {$DEFINE COMPILER9}
  304. {$DEFINE DELPHI9}
  305. {$DEFINE DELPHICOMPILER9}
  306. {$DEFINE RTL170_UP}
  307. {$ENDIF}
  308. {$IFDEF VER160}
  309. {$DEFINE COMPILER8}
  310. {$DEFINE DELPHI8}
  311. {$DEFINE DELPHICOMPILER8}
  312. {$DEFINE RTL160_UP}
  313. {$ENDIF}
  314. {$IFDEF VER150}
  315. {$DEFINE COMPILER7}
  316. {$IFDEF BCB}
  317. {$DEFINE BCB7}
  318. {$ELSE}
  319. {$DEFINE DELPHI7}
  320. {$DEFINE DELPHICOMPILER7}
  321. {$ENDIF}
  322. {$DEFINE RTL150_UP}
  323. {$ENDIF}
  324. {$IFDEF VER140}
  325. {$DEFINE COMPILER6}
  326. {$IFDEF BCB}
  327. {$DEFINE BCB6}
  328. {$ELSE}
  329. {$DEFINE DELPHI6}
  330. {$DEFINE DELPHICOMPILER6}
  331. {$ENDIF}
  332. {$DEFINE RTL140_UP}
  333. {$ENDIF}
  334. {$IFDEF VER130}
  335. {$DEFINE COMPILER5}
  336. {$IFDEF BCB}
  337. {$DEFINE BCB5}
  338. {$ELSE}
  339. {$DEFINE DELPHI5}
  340. {$DEFINE DELPHICOMPILER5}
  341. {$ENDIF}
  342. {$DEFINE RTL130_UP}
  343. {$ENDIF}
  344. {$IFDEF VER125}
  345. {$DEFINE COMPILER4}
  346. {$DEFINE BCB4}
  347. {$DEFINE BCB}
  348. {$DEFINE RTL125_UP}
  349. {$ENDIF}
  350. {$IFDEF VER120}
  351. {$DEFINE COMPILER4}
  352. {$DEFINE DELPHI4}
  353. {$DEFINE DELPHICOMPILER4}
  354. {$DEFINE RTL120_UP}
  355. {$ENDIF}
  356. {$IFDEF VER110}
  357. {$DEFINE COMPILER35}
  358. {$DEFINE BCB3}
  359. {$DEFINE RTL110_UP}
  360. {$ENDIF}
  361. {$IFDEF VER100}
  362. {$DEFINE COMPILER3}
  363. {$DEFINE DELPHI3}
  364. {$DEFINE DELPHICOMPILER3}
  365. {$DEFINE RTL100_UP}
  366. {$ENDIF}
  367. {$IFDEF VER93}
  368. {$DEFINE COMPILER2}
  369. {$DEFINE BCB1}
  370. {$DEFINE BCB}
  371. {$DEFINE RTL93_UP}
  372. {$ENDIF}
  373. {$IFDEF VER90}
  374. {$DEFINE COMPILER2}
  375. {$DEFINE DELPHI2}
  376. {$DEFINE DELPHICOMPILER2}
  377. {$DEFINE RTL90_UP}
  378. {$ENDIF}
  379. {$IFDEF VER80}
  380. {$DEFINE COMPILER1}
  381. {$DEFINE DELPHI1}
  382. {$DEFINE DELPHICOMPILER1}
  383. {$DEFINE RTL80_UP}
  384. {$ENDIF}
  385. {$ENDIF ~KYLIX}
  386. {$IFDEF BCB}
  387. {$DEFINE CPPBUILDER}
  388. {$DEFINE BCBCOMPILER}
  389. {$ELSE ~BCB}
  390. {$DEFINE DELPHI}
  391. {$DEFINE DELPHICOMPILER}
  392. {$ENDIF ~BCB}
  393. {$ENDIF BORLAND}
  394. {------------------------------------------------------------------------------}
  395. { DELPHIX_UP from DELPHIX mappings }
  396. {------------------------------------------------------------------------------}
  397. {$IFDEF DELPHI9}
  398. {$DEFINE DELPHI9_UP}
  399. {$DEFINE DELPHI8_UP}
  400. {$DEFINE DELPHI7_UP}
  401. {$DEFINE DELPHI6_UP}
  402. {$DEFINE DELPHI5_UP}
  403. {$DEFINE DELPHI4_UP}
  404. {$DEFINE DELPHI3_UP}
  405. {$DEFINE DELPHI2_UP}
  406. {$DEFINE DELPHI1_UP}
  407. {$ENDIF}
  408. {$IFDEF DELPHI8}
  409. {$DEFINE DELPHI8_UP}
  410. {$DEFINE DELPHI7_UP}
  411. {$DEFINE DELPHI6_UP}
  412. {$DEFINE DELPHI5_UP}
  413. {$DEFINE DELPHI4_UP}
  414. {$DEFINE DELPHI3_UP}
  415. {$DEFINE DELPHI2_UP}
  416. {$DEFINE DELPHI1_UP}
  417. {$ENDIF}
  418. {$IFDEF DELPHI7}
  419. {$DEFINE DELPHI7_UP}
  420. {$DEFINE DELPHI6_UP}
  421. {$DEFINE DELPHI5_UP}
  422. {$DEFINE DELPHI4_UP}
  423. {$DEFINE DELPHI3_UP}
  424. {$DEFINE DELPHI2_UP}
  425. {$DEFINE DELPHI1_UP}
  426. {$ENDIF}
  427. {$IFDEF DELPHI6}
  428. {$DEFINE DELPHI6_UP}
  429. {$DEFINE DELPHI5_UP}
  430. {$DEFINE DELPHI4_UP}
  431. {$DEFINE DELPHI3_UP}
  432. {$DEFINE DELPHI2_UP}
  433. {$DEFINE DELPHI1_UP}
  434. {$ENDIF}
  435. {$IFDEF DELPHI5}
  436. {$DEFINE DELPHI5_UP}
  437. {$DEFINE DELPHI4_UP}
  438. {$DEFINE DELPHI3_UP}
  439. {$DEFINE DELPHI2_UP}
  440. {$DEFINE DELPHI1_UP}
  441. {$ENDIF}
  442. {$IFDEF DELPHI4}
  443. {$DEFINE DELPHI4_UP}
  444. {$DEFINE DELPHI3_UP}
  445. {$DEFINE DELPHI2_UP}
  446. {$DEFINE DELPHI1_UP}
  447. {$ENDIF}
  448. {$IFDEF DELPHI3}
  449. {$DEFINE DELPHI3_UP}
  450. {$DEFINE DELPHI2_UP}
  451. {$DEFINE DELPHI1_UP}
  452. {$ENDIF}
  453. {$IFDEF DELPHI2}
  454. {$DEFINE DELPHI2_UP}
  455. {$DEFINE DELPHI1_UP}
  456. {$ENDIF}
  457. {$IFDEF DELPHI1}
  458. {$DEFINE DELPHI1_UP}
  459. {$ENDIF}
  460. {------------------------------------------------------------------------------}
  461. { KYLIXX_UP from KYLIXX mappings }
  462. {------------------------------------------------------------------------------}
  463. {$IFDEF KYLIX3}
  464. {$DEFINE KYLIX3_UP}
  465. {$DEFINE KYLIX2_UP}
  466. {$DEFINE KYLIX1_UP}
  467. {$ENDIF}
  468. {$IFDEF KYLIX2}
  469. {$DEFINE KYLIX2_UP}
  470. {$DEFINE KYLIX1_UP}
  471. {$ENDIF}
  472. {$IFDEF KYLIX1}
  473. {$DEFINE KYLIX1_UP}
  474. {$ENDIF}
  475. {------------------------------------------------------------------------------}
  476. { BCBX_UP from BCBX mappings }
  477. {------------------------------------------------------------------------------}
  478. {$IFDEF BCB7}
  479. {$DEFINE BCB7_UP}
  480. {$DEFINE BCB6_UP}
  481. {$DEFINE BCB5_UP}
  482. {$DEFINE BCB4_UP}
  483. {$DEFINE BCB3_UP}
  484. {$DEFINE BCB1_UP}
  485. {$ENDIF}
  486. {$IFDEF BCB6}
  487. {$DEFINE BCB6_UP}
  488. {$DEFINE BCB5_UP}
  489. {$DEFINE BCB4_UP}
  490. {$DEFINE BCB3_UP}
  491. {$DEFINE BCB1_UP}
  492. {$ENDIF}
  493. {$IFDEF BCB5}
  494. {$DEFINE BCB5_UP}
  495. {$DEFINE BCB4_UP}
  496. {$DEFINE BCB3_UP}
  497. {$DEFINE BCB1_UP}
  498. {$ENDIF}
  499. {$IFDEF BCB4}
  500. {$DEFINE BCB4_UP}
  501. {$DEFINE BCB3_UP}
  502. {$DEFINE BCB1_UP}
  503. {$ENDIF}
  504. {$IFDEF BCB3}
  505. {$DEFINE BCB3_UP}
  506. {$DEFINE BCB1_UP}
  507. {$ENDIF}
  508. {$IFDEF BCB1}
  509. {$DEFINE BCB1_UP}
  510. {$ENDIF}
  511. {------------------------------------------------------------------------------}
  512. { DELPHICOMPILERX_UP from DELPHICOMPILERX mappings }
  513. {------------------------------------------------------------------------------}
  514. {$IFDEF DELPHICOMPILER9}
  515. {$DEFINE DELPHICOMPILER9_UP}
  516. {$DEFINE DELPHICOMPILER8_UP}
  517. {$DEFINE DELPHICOMPILER7_UP}
  518. {$DEFINE DELPHICOMPILER6_UP}
  519. {$DEFINE DELPHICOMPILER5_UP}
  520. {$DEFINE DELPHICOMPILER4_UP}
  521. {$DEFINE DELPHICOMPILER3_UP}
  522. {$DEFINE DELPHICOMPILER2_UP}
  523. {$DEFINE DELPHICOMPILER1_UP}
  524. {$ENDIF}
  525. {$IFDEF DELPHICOMPILER8}
  526. {$DEFINE DELPHICOMPILER8_UP}
  527. {$DEFINE DELPHICOMPILER7_UP}
  528. {$DEFINE DELPHICOMPILER6_UP}
  529. {$DEFINE DELPHICOMPILER5_UP}
  530. {$DEFINE DELPHICOMPILER4_UP}
  531. {$DEFINE DELPHICOMPILER3_UP}
  532. {$DEFINE DELPHICOMPILER2_UP}
  533. {$DEFINE DELPHICOMPILER1_UP}
  534. {$ENDIF}
  535. {$IFDEF DELPHICOMPILER7}
  536. {$DEFINE DELPHICOMPILER7_UP}
  537. {$DEFINE DELPHICOMPILER6_UP}
  538. {$DEFINE DELPHICOMPILER5_UP}
  539. {$DEFINE DELPHICOMPILER4_UP}
  540. {$DEFINE DELPHICOMPILER3_UP}
  541. {$DEFINE DELPHICOMPILER2_UP}
  542. {$DEFINE DELPHICOMPILER1_UP}
  543. {$ENDIF}
  544. {$IFDEF DELPHICOMPILER6}
  545. {$DEFINE DELPHICOMPILER6_UP}
  546. {$DEFINE DELPHICOMPILER5_UP}
  547. {$DEFINE DELPHICOMPILER4_UP}
  548. {$DEFINE DELPHICOMPILER3_UP}
  549. {$DEFINE DELPHICOMPILER2_UP}
  550. {$DEFINE DELPHICOMPILER1_UP}
  551. {$ENDIF}
  552. {$IFDEF DELPHICOMPILER5}
  553. {$DEFINE DELPHICOMPILER5_UP}
  554. {$DEFINE DELPHICOMPILER4_UP}
  555. {$DEFINE DELPHICOMPILER3_UP}
  556. {$DEFINE DELPHICOMPILER2_UP}
  557. {$DEFINE DELPHICOMPILER1_UP}
  558. {$ENDIF}
  559. {$IFDEF DELPHICOMPILER4}
  560. {$DEFINE DELPHICOMPILER4_UP}
  561. {$DEFINE DELPHICOMPILER3_UP}
  562. {$DEFINE DELPHICOMPILER2_UP}
  563. {$DEFINE DELPHICOMPILER1_UP}
  564. {$ENDIF}
  565. {$IFDEF DELPHICOMPILER3}
  566. {$DEFINE DELPHICOMPILER3_UP}
  567. {$DEFINE DELPHICOMPILER2_UP}
  568. {$DEFINE DELPHICOMPILER1_UP}
  569. {$ENDIF}
  570. {$IFDEF DELPHICOMPILER2}
  571. {$DEFINE DELPHICOMPILER2_UP}
  572. {$DEFINE DELPHICOMPILER1_UP}
  573. {$ENDIF}
  574. {$IFDEF DELPHICOMPILER1}
  575. {$DEFINE DELPHICOMPILER1_UP}
  576. {$ENDIF}
  577. {------------------------------------------------------------------------------}
  578. { COMPILERX_UP from COMPILERX mappings }
  579. {------------------------------------------------------------------------------}
  580. {$IFDEF COMPILER9}
  581. {$DEFINE COMPILER9_UP}
  582. {$DEFINE COMPILER8_UP}
  583. {$DEFINE COMPILER7_UP}
  584. {$DEFINE COMPILER6_UP}
  585. {$DEFINE COMPILER5_UP}
  586. {$DEFINE COMPILER4_UP}
  587. {$DEFINE COMPILER35_UP}
  588. {$DEFINE COMPILER3_UP}
  589. {$DEFINE COMPILER2_UP}
  590. {$DEFINE COMPILER1_UP}
  591. {$ENDIF}
  592. {$IFDEF COMPILER8}
  593. {$DEFINE COMPILER8_UP}
  594. {$DEFINE COMPILER7_UP}
  595. {$DEFINE COMPILER6_UP}
  596. {$DEFINE COMPILER5_UP}
  597. {$DEFINE COMPILER4_UP}
  598. {$DEFINE COMPILER35_UP}
  599. {$DEFINE COMPILER3_UP}
  600. {$DEFINE COMPILER2_UP}
  601. {$DEFINE COMPILER1_UP}
  602. {$ENDIF}
  603. {$IFDEF COMPILER7}
  604. {$DEFINE COMPILER7_UP}
  605. {$DEFINE COMPILER6_UP}
  606. {$DEFINE COMPILER5_UP}
  607. {$DEFINE COMPILER4_UP}
  608. {$DEFINE COMPILER35_UP}
  609. {$DEFINE COMPILER3_UP}
  610. {$DEFINE COMPILER2_UP}
  611. {$DEFINE COMPILER1_UP}
  612. {$ENDIF}
  613. {$IFDEF COMPILER6}
  614. {$DEFINE COMPILER6_UP}
  615. {$DEFINE COMPILER5_UP}
  616. {$DEFINE COMPILER4_UP}
  617. {$DEFINE COMPILER35_UP}
  618. {$DEFINE COMPILER3_UP}
  619. {$DEFINE COMPILER2_UP}
  620. {$DEFINE COMPILER1_UP}
  621. {$ENDIF}
  622. {$IFDEF COMPILER5}
  623. {$DEFINE COMPILER5_UP}
  624. {$DEFINE COMPILER4_UP}
  625. {$DEFINE COMPILER35_UP}
  626. {$DEFINE COMPILER3_UP}
  627. {$DEFINE COMPILER2_UP}
  628. {$DEFINE COMPILER1_UP}
  629. {$ENDIF}
  630. {$IFDEF COMPILER4}
  631. {$DEFINE COMPILER4_UP}
  632. {$DEFINE COMPILER35_UP}
  633. {$DEFINE COMPILER3_UP}
  634. {$DEFINE COMPILER2_UP}
  635. {$DEFINE COMPILER1_UP}
  636. {$ENDIF}
  637. {$IFDEF COMPILER35}
  638. {$DEFINE COMPILER35_UP}
  639. {$DEFINE COMPILER3_UP}
  640. {$DEFINE COMPILER2_UP}
  641. {$DEFINE COMPILER1_UP}
  642. {$ENDIF}
  643. {$IFDEF COMPILER3}
  644. {$DEFINE COMPILER3_UP}
  645. {$DEFINE COMPILER2_UP}
  646. {$DEFINE COMPILER1_UP}
  647. {$ENDIF}
  648. {$IFDEF COMPILER2}
  649. {$DEFINE COMPILER2_UP}
  650. {$DEFINE COMPILER1_UP}
  651. {$ENDIF}
  652. {$IFDEF COMPILER1}
  653. {$DEFINE COMPILER1_UP}
  654. {$ENDIF}
  655. {------------------------------------------------------------------------------}
  656. {$IFDEF DELPHICOMPILER}
  657. {$DEFINE DELPHILANGUAGE}
  658. {$ENDIF}
  659. {$IFDEF BCBCOMPILER}
  660. {$DEFINE DELPHILANGUAGE}
  661. {$ENDIF}
  662. {------------------------------------------------------------------------------}
  663. { RTLX_UP from RTLX_UP mappings }
  664. {------------------------------------------------------------------------------}
  665. {$IFDEF RTL170_UP}
  666. {$DEFINE RTL160_UP}
  667. {$ENDIF}
  668. {$IFDEF RTL160_UP}
  669. {$DEFINE RTL150_UP}
  670. {$ENDIF}
  671. {$IFDEF RTL150_UP}
  672. {$DEFINE RTL145_UP}
  673. {$ENDIF}
  674. {$IFDEF RTL145_UP}
  675. {$DEFINE RTL142_UP}
  676. {$ENDIF}
  677. {$IFDEF RTL142_UP}
  678. {$DEFINE RTL140_UP}
  679. {$ENDIF}
  680. {$IFDEF RTL140_UP}
  681. {$DEFINE RTL130_UP}
  682. {$ENDIF}
  683. {$IFDEF RTL130_UP}
  684. {$DEFINE RTL125_UP}
  685. {$ENDIF}
  686. {$IFDEF RTL125_UP}
  687. {$DEFINE RTL120_UP}
  688. {$ENDIF}
  689. {$IFDEF RTL120_UP}
  690. {$DEFINE RTL110_UP}
  691. {$ENDIF}
  692. {$IFDEF RTL110_UP}
  693. {$DEFINE RTL100_UP}
  694. {$ENDIF}
  695. {$IFDEF RTL100_UP}
  696. {$DEFINE RTL93_UP}
  697. {$ENDIF}
  698. {$IFDEF RTL93_UP}
  699. {$DEFINE RTL90_UP}
  700. {$ENDIF}
  701. {$IFDEF RTL90_UP}
  702. {$DEFINE RTL80_UP}
  703. {$ENDIF}
  704. {------------------------------------------------------------------------------}
  705. { Map COMPILERX_UP to friendly feature names }
  706. {------------------------------------------------------------------------------}
  707. {$IFDEF FPC}
  708. {$MODE Delphi}
  709. {$DEFINE SUPPORTS_OUTPARAMS}
  710. {$DEFINE SUPPORTS_WIDECHAR}
  711. {$DEFINE SUPPORTS_WIDESTRING}
  712. {$DEFINE SUPPORTS_INTERFACE}
  713. {$DEFINE SUPPORTS_VARIANT}
  714. {$IFDEF FPC_HAS_TYPE_SINGLE}
  715. {$DEFINE SUPPORTS_SINGLE}
  716. {$ENDIF}
  717. {$IFDEF FPC_HAS_TYPE_DOUBLE}
  718. {$DEFINE SUPPORTS_DOUBLE}
  719. {$ENDIF}
  720. {$IFDEF FPC_HAS_TYPE_EXTENDED}
  721. {$DEFINE SUPPORTS_EXTENDED}
  722. {$ENDIF}
  723. {$DEFINE SUPPORTS_CURRENCY}
  724. {$DEFINE SUPPORTS_THREADVAR}
  725. {$DEFINE SUPPORTS_CONSTPARAMS}
  726. {$DEFINE SUPPORTS_LONGWORD}
  727. {$DEFINE SUPPORTS_INT64}
  728. {$DEFINE SUPPORTS_DYNAMICARRAYS}
  729. {$DEFINE SUPPORTS_DEFAULTPARAMS}
  730. {$DEFINE SUPPORTS_OVERLOAD}
  731. {$DEFINE ACCEPT_DEPRECATED}
  732. {$DEFINE ACCEPT_PLATFORM}
  733. {$DEFINE ACCEPT_LIBRARY}
  734. {$DEFINE SUPPORTS_EXTSYM}
  735. {$DEFINE SUPPORTS_NODEFINE}
  736. {$DEFINE SUPPORTS_CUSTOMVARIANTS}
  737. {$DEFINE SUPPORTS_VARARGS}
  738. {$DEFINE SUPPORTS_ENUMVALUE}
  739. {$IFDEF LINUX}
  740. {$DEFINE HAS_UNIT_LIBC}
  741. {$ENDIF LINUX}
  742. {$DEFINE HAS_UNIT_TYPES}
  743. {$DEFINE HAS_UNIT_VARIANTS}
  744. {$DEFINE HAS_UNIT_STRUTILS}
  745. {$DEFINE XPLATFORM_RTL}
  746. {$UNDEF SUPPORTS_DISPINTERFACE}
  747. {$UNDEF SUPPORTS_DISPID} // is used outside of dispinterfaces
  748. {$UNDEF SUPPORTS_IMPLEMENTS}
  749. {$UNDEF SUPPORTS_UNSAFE_WARNINGS}
  750. {$ENDIF}
  751. {$ENDIF FPC}
  752. {$IFDEF COMPILER1_UP}
  753. {$DEFINE SUPPORTS_CONSTPARAMS}
  754. {$DEFINE SUPPORTS_SINGLE}
  755. {$DEFINE SUPPORTS_DOUBLE}
  756. {$DEFINE SUPPORTS_EXTENDED}
  757. {$ENDIF COMPILER1_UP}
  758. {$IFDEF COMPILER2_UP}
  759. {$DEFINE SUPPORTS_CURRENCY}
  760. {$DEFINE SUPPORTS_THREADVAR}
  761. {$DEFINE SUPPORTS_VARIANT}
  762. {$DEFINE SUPPORTS_WIDECHAR}
  763. {$ENDIF COMPILER2_UP}
  764. {$IFDEF COMPILER3_UP}
  765. {$DEFINE SUPPORTS_OUTPARAMS}
  766. {$DEFINE SUPPORTS_WIDESTRING}
  767. {$DEFINE SUPPORTS_INTERFACE}
  768. {$DEFINE SUPPORTS_DISPINTERFACE}
  769. {$DEFINE SUPPORTS_DISPID}
  770. {$DEFINE SUPPORTS_WEAKPACKAGEUNIT}
  771. {$ENDIF COMPILER3_UP}
  772. {$IFDEF COMPILER35_UP}
  773. {$DEFINE SUPPORTS_EXTSYM}
  774. {$DEFINE SUPPORTS_NODEFINE}
  775. {$ENDIF COMPILER35_UP}
  776. {$IFDEF COMPILER4_UP}
  777. {$DEFINE SUPPORTS_LONGWORD}
  778. {$DEFINE SUPPORTS_INT64}
  779. {$DEFINE SUPPORTS_DYNAMICARRAYS}
  780. {$DEFINE SUPPORTS_DEFAULTPARAMS}
  781. {$DEFINE SUPPORTS_OVERLOAD}
  782. {$DEFINE SUPPORTS_IMPLEMENTS}
  783. {$ENDIF COMPILER4_UP}
  784. {$IFDEF COMPILER6_UP}
  785. {$DEFINE SUPPORTS_DEPRECATED}
  786. {$DEFINE SUPPORTS_LIBRARY}
  787. {$DEFINE SUPPORTS_PLATFORM}
  788. {$DEFINE SUPPORTS_LOCAL}
  789. {$DEFINE ACCEPT_DEPRECATED}
  790. {$DEFINE ACCEPT_PLATFORM}
  791. {$DEFINE ACCEPT_LIBRARY}
  792. {$DEFINE SUPPORTS_DEPRECATED_WARNINGS}
  793. {$DEFINE SUPPORTS_LIBRARY_WARNINGS}
  794. {$DEFINE SUPPORTS_PLATFORM_WARNINGS}
  795. {$DEFINE SUPPORTS_CUSTOMVARIANTS}
  796. {$DEFINE SUPPORTS_VARARGS}
  797. {$DEFINE SUPPORTS_ENUMVALUE}
  798. {$DEFINE SUPPORTS_COMPILETIME_MESSAGES}
  799. {$ENDIF COMPILER6_UP}
  800. {$IFDEF COMPILER7_UP}
  801. {$DEFINE SUPPORTS_UNSAFE_WARNINGS}
  802. {$ENDIF COMPILER7_UP}
  803. {$IFDEF RTL140_UP}
  804. {$IFDEF LINUX}
  805. {$DEFINE HAS_UNIT_LIBC}
  806. {$ENDIF LINUX}
  807. {$DEFINE HAS_UNIT_RTLCONSTS}
  808. {$DEFINE HAS_UNIT_TYPES}
  809. {$DEFINE HAS_UNIT_VARIANTS}
  810. {$DEFINE HAS_UNIT_STRUTILS}
  811. {$DEFINE XPLATFORM_RTL}
  812. {$ENDIF RTL140_UP}
  813. {------------------------------------------------------------------------------}
  814. { Cross-platform related defines }
  815. {------------------------------------------------------------------------------}
  816. {$IFDEF WIN32}
  817. {$DEFINE MSWINDOWS}
  818. {$ENDIF}
  819. {$IFDEF DELPHILANGUAGE}
  820. {$IFDEF LINUX}
  821. {$DEFINE UNIX}
  822. {$DEFINE VisualCLX}
  823. {$ENDIF}
  824. {$IFNDEF VisualCLX}
  825. {$DEFINE VCL}
  826. {$ENDIF}
  827. {$IFDEF VisualCLX}
  828. {$DEFINE COMPLIB_CLX} { kept for backward compatibility, use VisualCLX instead }
  829. {$ENDIF}
  830. {$IFDEF VCL}
  831. {$DEFINE COMPLIB_VCL} { kept for backward compatibility, use VCL instead }
  832. {$ENDIF}
  833. {$ENDIF DELPHILANGUAGE}
  834. {------------------------------------------------------------------------------}
  835. { Compiler settings }
  836. {------------------------------------------------------------------------------}
  837. {$IFOPT A+} {$DEFINE ALIGN_ON} {$ENDIF}
  838. {$IFOPT B+} {$DEFINE BOOLEVAL_ON} {$ENDIF}
  839. {$IFDEF COMPILER2_UP}
  840. {$IFOPT C+} {$DEFINE ASSERTIONS_ON} {$ENDIF}
  841. {$ENDIF}
  842. {$IFOPT D+} {$DEFINE DEBUGINFO_ON} {$ENDIF}
  843. {$IFOPT G+} {$DEFINE IMPORTEDDATA_ON} {$ENDIF}
  844. {$IFDEF COMPILER2_UP}
  845. {$IFOPT H+} {$DEFINE LONGSTRINGS_ON} {$ENDIF}
  846. {$ENDIF}
  847. { HINTS }
  848. {$IFOPT I+} {$DEFINE IOCHECKS_ON} {$ENDIF}
  849. {$IFDEF COMPILER2_UP}
  850. {$IFOPT J+} {$DEFINE WRITEABLECONST_ON} {$ENDIF}
  851. {$ENDIF}
  852. {$IFOPT L+} {$DEFINE LOCALSYMBOLS} {$ENDIF}
  853. {$IFOPT M+} {$DEFINE TYPEINFO_ON} {$ENDIF}
  854. {$IFOPT O+} {$DEFINE OPTIMIZATION_ON} {$ENDIF}
  855. {$IFOPT P+} {$DEFINE OPENSTRINGS_ON} {$ENDIF}
  856. {$IFOPT Q+} {$DEFINE OVERFLOWCHECKS_ON} {$ENDIF}
  857. {$IFOPT R+} {$DEFINE RANGECHECKS_ON} {$ENDIF}
  858. { REALCOMPATIBILITY }
  859. {$IFOPT T+} {$DEFINE TYPEDADDRESS_ON} {$ENDIF}
  860. {$IFOPT U+} {$DEFINE SAFEDIVIDE_ON} {$ENDIF}
  861. {$IFOPT V+} {$DEFINE VARSTRINGCHECKS_ON} {$ENDIF}
  862. {$IFOPT W+} {$DEFINE STACKFRAMES_ON} {$ENDIF}
  863. { WARNINGS }
  864. {$IFOPT X+} {$DEFINE EXTENDEDSYNTAX_ON} {$ENDIF}
  865. // for Delphi/BCB trial versions remove the point from the line below
  866. {.$UNDEF SUPPORTS_WEAKPACKAGEUNIT}
  867. // History:
  868. // Revision 1.1 2005/04/04 07:56:11 marco
  869. // * Jedi Windows Api initial import
  870. //
  871. // Revision 1.1 2004/11/11 09:39:29 marquardt
  872. // added several directory trees, added jedi.inc to files, misc style changes
  873. //
  874. // Revision 1.19 2004/11/06 02:11:20 mthoma
  875. // history cleaning.
  876. //
  877. // Revision 1.18 2004/08/10 02:52:02 rrossmair
  878. // - moved {$ENDIF ~JEDI_INC} to EOF.
  879. //
  880. // Revision 1.17 2004/08/09 06:38:08 peter3
  881. // - D8 support added
  882. // - D9 support added (guesswork)
  883. //
  884. // Revision 1.16 2004/07/29 17:12:28 rrossmair
  885. // fixed comment ("KYLIXX_UP from KYLIXX mappings")
  886. //
  887. // Revision 1.15 2004/07/29 07:58:21 marquardt
  888. // inc files updated
  889. //
  890. // Revision 1.14 2004/06/21 01:10:17 rrossmair
  891. // - $IFDEFed contents (to prevent from repeated inclusion)
  892. // - introduced symbols SUPPORTS_DEPRECATED_WARNINGS, SUPPORTS_LIBRARY_WARNINGS, SUPPORTS_PLATFORM_WARNINGS, SUPPORTS_COMPILETIME_MESSAGES
  893. // - reordered pre-CVS history
  894. //
  895. // Revision 1.13 2004/05/08 08:44:20 rrossmair
  896. // introduced & applied symbol HAS_UNIT_LIBC
  897. //
  898. // Revision 1.12 2004/05/06 05:03:59 rrossmair
  899. // SUPPORTS_ENUMVALUE definition fixed for Free Pascal Compiler
  900. //
  901. // Revision 1.11 2004/05/05 03:20:13 rrossmair
  902. // jedi.inc: moved FPC-incompatible Kylix-related code to separate include file "kylix.inc", disposed of FPC-related TODOs
  903. //
  904. // Revision 1.10 2004/05/01 00:03:59 rrossmair
  905. // FPC workaround removed; didn't work with Kylix
  906. //
  907. // Revision 1.9 2004/04/30 18:25:15 rrossmair
  908. // added symbols BORLAND, CPPBUILDER, BCBCOMPILER
  909. // removed symbol NONBORLAND
  910. // cleanup (reduced redundancy)
  911. // corrected embarrassing typo "widestring's" (for the 3rd time, I believe)
  912. //
  913. // Revision 1.8 2004/04/14 20:26:33 mthoma
  914. // Changed data to date
  915. // Local is Delphi 6 - removed todo comment
  916. // Replaced CLX with VisualCLX to be consistent with Borlands current definition of what "CLX" is.
  917. //
  918. // Revision 1.7 2004/04/06 05:06:12
  919. // add support for Kylix, FPC, RTL, versions, some speaking directives
  920. //
  921. // 2004-03-22,
  922. // - add SUPPORTS_WEAKPACKAGEUNIT
  923. //
  924. // 2004-03-20,
  925. // - add SUPPORTS_LOCAL
  926. //
  927. // 2004-03-18,
  928. // - add SUPPORTS_LONGWORD
  929. //
  930. // 2004-03-16,
  931. // - add HAS_UNIT_STRUTILS
  932. // - add XPLATFORM_RTL
  933. //
  934. // 2003-12-03,
  935. // - add SUPPORTS_ENUMVALUE
  936. //
  937. // 2003-11-14,
  938. // - add SUPPORTS_VARARGS
  939. //
  940. // 2003-10-30,
  941. // - correct and complete comments
  942. // - add Kylix definitions
  943. // - add RTL definitions
  944. // - add FPC definitions
  945. {$ENDIF ~JEDI_INC}