OverbyteIcsDefs.inc 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443
  1. {*_* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  2. Author: François PIETTE
  3. Description: Version defines for ICS (Internet Component Suite)
  4. Creation: 2003
  5. Version: 1.06
  6. EMail: francois.piette@overbyte.be http://www.overbyte.be
  7. Support: Use the mailing list twsocket@elists.org
  8. Follow "support" link at http://www.overbyte.be for subscription.
  9. Legal issues: Copyright (C) 1996-2005 by François PIETTE
  10. Rue de Grady 24, 4053 Embourg, Belgium. Fax: +32-4-365.74.56
  11. <francois.piette@overbyte.be>
  12. This software is provided 'as-is', without any express or
  13. implied warranty. In no event will the author be held liable
  14. for any damages arising from the use of this software.
  15. Permission is granted to anyone to use this software for any
  16. purpose, including commercial applications, and to alter it
  17. and redistribute it freely, subject to the following
  18. restrictions:
  19. 1. The origin of this software must not be misrepresented,
  20. you must not claim that you wrote the original software.
  21. If you use this software in a product, an acknowledgment
  22. in the product documentation would be appreciated but is
  23. not required.
  24. 2. Altered source versions must be plainly marked as such, and
  25. must not be misrepresented as being the original software.
  26. 3. This notice may not be removed or altered from any source
  27. distribution.
  28. 4. You must register this software by sending a picture postcard
  29. to the author. Use a nice stamp and mention your name, street
  30. address, EMail address and any comment you like to say.
  31. History:
  32. May 31, 2004 V1.01 Correctly defined COMPILERX_UP symbols
  33. Sep 07, 2004 V1.02 Updated for Delphi 9/W32
  34. Mar 11, 2005 V1.03 Marco (marcov@stack.nl) added some defines for better FPC
  35. support
  36. Mar 13, 2005 V1.04 Changed conditional symbol for streams supporting 64 bits
  37. seek.
  38. Jul 30, 2005 V1.05 Updated for Delphi 10. Not tested !
  39. Sept 2, 2005 V1.06 64-bit streams are Delphi 6 and later
  40. SYMBOL Compiler version
  41. =============== ======================================
  42. DELPHI1 Delphi 1
  43. DELPHI2 Delphi 2
  44. DELPHI3 Delphi 3
  45. DELPHI4 Delphi 4
  46. DELPHI5 Delphi 5
  47. DELPHI6 Delphi 6
  48. DELPHI7 Delphi 7
  49. DELPHI9 Delphi 2005
  50. DELPHI10 Delphi 2006
  51. DELPHI1_UP Delphi 1 or higher
  52. DELPHI2_UP Delphi 2 or higher
  53. DELPHI3_UP Delphi 3 or higher
  54. DELPHI4_UP Delphi 4 or higher
  55. DELPHI5_UP Delphi 5 or higher
  56. DELPHI6_UP Delphi 6 or higher
  57. DELPHI7_UP Delphi 7 or higher (Delphi 8 is .NET only. No way here)
  58. DELPHI9_UP Delphi 9 or higher (Delphi 2005 has W32 compiler)
  59. DELPHI10_UP Delphi 10 or higher (Delphi 2006)
  60. BCB1 C++ Builder 1
  61. BCB3 C++ Builder 3
  62. BCB4 C++ Builder 4
  63. BCB5 C++ Builder 5
  64. BCB6 C++ Builder 6
  65. BCB7 C++ Builder 7
  66. BCB1_UP C++ Builder 1 or higher
  67. BCB3_UP C++ Builder 3 or higher
  68. BCB4_UP C++ Builder 4 or higher
  69. BCB5_UP C++ Builder 5 or higher
  70. BCB6_UP C++ Builder 6 or higher
  71. BCB7_UP C++ Builder 7 or higher (Doesn't exists, not tested)
  72. BCB10_UP C++ Builder 10 or higher (Doesn't exists, not tested)
  73. COMPILER1 Delphi 1
  74. COMPILER2 Delphi 2 or C++ Builder 1
  75. COMPILER3 Delphi 3
  76. COMPILER35 C++ Builder 3
  77. COMPILER4 Delphi 4 or C++ Builder 4
  78. COMPILER5 Delphi 5 or C++ Builder 5
  79. COMPILER6 Delphi 6 or C++ Builder 6
  80. COMPILER1_UP Delphi 1 or higher
  81. COMPILER2_UP Delphi 2 or C++ Builder 1 or higher
  82. COMPILER3_UP Delphi 3 or higher
  83. COMPILER35_UP C++ Builder 3 or higher
  84. COMPILER4_UP Delphi 4 or C++ Builder 4 or higher
  85. COMPILER5_UP Delphi 5 or C++ Builder 5 or higher
  86. COMPILER6_UP Delphi 6 or C++ Builder 6 or higher
  87. COMPILER7_UP Delphi 7 or higher
  88. COMPILER9_UP Delphi 9 or higher
  89. COMPILER10_UP Delphi 10 or higher (Doesn't exists, not tested)
  90. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
  91. {$IFDEF FPC}
  92. {$MODE Delphi} { delphi mode }
  93. {$H+} { Use long strings }
  94. {$ASMMODE Intel} { Intel syntax assembler }
  95. {$DEFINE USEWINDOWS} { Use "Windows" unit. }
  96. {$DEFINE NOFORMS} { No unit forms. }
  97. {$DEFINE SOCKETULONGMUSTMATCH}
  98. // With FPC, relying directly on Delphi version is evil.
  99. // (http://www.stack.nl/~marcov/porting.pdf)
  100. // However FPC 1.9.x is more D6/D7 than previous, so
  101. // we have to define something, sigh!
  102. {$DEFINE DELPHI7_UP}
  103. {$DEFINE DELPHI6_UP}
  104. {$DEFINE DELPHI5_UP}
  105. {$DEFINE DELPHI4_UP}
  106. {$DEFINE DELPHI3_UP}
  107. {$DEFINE DELPHI2_UP}
  108. {$DEFINE DELPHI1_UP}
  109. {$DEFINE COMPILER7_UP}
  110. {$DEFINE COMPILER6_UP}
  111. {$DEFINE COMPILER5_UP}
  112. {$DEFINE COMPILER4_UP}
  113. {$DEFINE COMPILER35_UP}
  114. {$DEFINE COMPILER3_UP}
  115. {$DEFINE COMPILER2_UP}
  116. {$DEFINE COMPILER1_UP}
  117. {$ENDIF}
  118. {$IFDEF VER180}
  119. {$DEFINE COMPILER10}
  120. {$IFDEF BCB}
  121. {$DEFINE BCB10}
  122. {$ELSE}
  123. {$DEFINE DELPHI10}
  124. {$DEFINE DELPHI}
  125. {$ENDIF}
  126. {$ENDIF}
  127. {$IFDEF VER170}
  128. {$DEFINE COMPILER9}
  129. {$IFDEF BCB}
  130. {$DEFINE BCB9}
  131. {$ELSE}
  132. {$DEFINE DELPHI9}
  133. {$DEFINE DELPHI}
  134. {$ENDIF}
  135. {$ENDIF}
  136. {$IFDEF VER150}
  137. {$DEFINE COMPILER7}
  138. {$IFDEF BCB}
  139. {$DEFINE BCB7}
  140. {$ELSE}
  141. {$DEFINE DELPHI7}
  142. {$DEFINE DELPHI}
  143. {$ENDIF}
  144. {$ENDIF}
  145. {$IFDEF VER140}
  146. {$DEFINE COMPILER6}
  147. {$IFDEF BCB}
  148. {$DEFINE BCB6}
  149. {$ELSE}
  150. {$DEFINE DELPHI6}
  151. {$DEFINE DELPHI}
  152. {$ENDIF}
  153. {$ENDIF}
  154. {$IFDEF VER130}
  155. {$DEFINE COMPILER5}
  156. {$IFDEF BCB}
  157. {$DEFINE BCB5}
  158. {$ELSE}
  159. {$DEFINE DELPHI5}
  160. {$DEFINE DELPHI}
  161. {$ENDIF}
  162. {$ENDIF}
  163. {$IFDEF VER125}
  164. {$DEFINE COMPILER4}
  165. {$DEFINE BCB4}
  166. {$DEFINE BCB}
  167. {$ENDIF}
  168. {$IFDEF VER120}
  169. {$DEFINE COMPILER4}
  170. {$DEFINE DELPHI4}
  171. {$DEFINE DELPHI}
  172. {$ENDIF}
  173. {$IFDEF VER110}
  174. {$DEFINE COMPILER35}
  175. {$DEFINE BCB3}
  176. {$ENDIF}
  177. {$IFDEF VER100}
  178. {$DEFINE COMPILER3}
  179. {$DEFINE DELPHI3}
  180. {$DEFINE DELPHI}
  181. {$ENDIF}
  182. {$IFDEF VER93}
  183. {$DEFINE COMPILER2}
  184. {$DEFINE BCB1}
  185. {$DEFINE BCB}
  186. {$ENDIF}
  187. {$IFDEF VER90}
  188. {$DEFINE COMPILER2}
  189. {$DEFINE DELPHI2}
  190. {$DEFINE DELPHI}
  191. {$ENDIF}
  192. {$IFDEF VER80}
  193. {$DEFINE COMPILER1}
  194. {$DEFINE DELPHI1}
  195. {$DEFINE DELPHI}
  196. {$ENDIF}
  197. {$IFDEF DELPHI10}
  198. {$DEFINE DELPHI10_UP}
  199. {$DEFINE DELPHI9_UP}
  200. {$DEFINE DELPHI7_UP}
  201. {$DEFINE DELPHI6_UP}
  202. {$DEFINE DELPHI5_UP}
  203. {$DEFINE DELPHI4_UP}
  204. {$DEFINE DELPHI3_UP}
  205. {$DEFINE DELPHI2_UP}
  206. {$DEFINE DELPHI1_UP}
  207. {$ENDIF}
  208. {$IFDEF DELPHI9}
  209. {$DEFINE DELPHI9_UP}
  210. {$DEFINE DELPHI7_UP}
  211. {$DEFINE DELPHI6_UP}
  212. {$DEFINE DELPHI5_UP}
  213. {$DEFINE DELPHI4_UP}
  214. {$DEFINE DELPHI3_UP}
  215. {$DEFINE DELPHI2_UP}
  216. {$DEFINE DELPHI1_UP}
  217. {$ENDIF}
  218. {$IFDEF DELPHI7}
  219. {$DEFINE DELPHI7_UP}
  220. {$DEFINE DELPHI6_UP}
  221. {$DEFINE DELPHI5_UP}
  222. {$DEFINE DELPHI4_UP}
  223. {$DEFINE DELPHI3_UP}
  224. {$DEFINE DELPHI2_UP}
  225. {$DEFINE DELPHI1_UP}
  226. {$ENDIF}
  227. {$IFDEF COMPILER9}
  228. {$DEFINE COMPILER9_UP}
  229. {$DEFINE COMPILER7_UP}
  230. {$DEFINE COMPILER6_UP}
  231. {$DEFINE COMPILER5_UP}
  232. {$DEFINE COMPILER4_UP}
  233. {$DEFINE COMPILER35_UP}
  234. {$DEFINE COMPILER3_UP}
  235. {$DEFINE COMPILER2_UP}
  236. {$DEFINE COMPILER1_UP}
  237. {$ENDIF}
  238. {$IFDEF COMPILER10}
  239. {$DEFINE COMPILER10_UP}
  240. {$DEFINE COMPILER9_UP}
  241. {$DEFINE COMPILER7_UP}
  242. {$DEFINE COMPILER6_UP}
  243. {$DEFINE COMPILER5_UP}
  244. {$DEFINE COMPILER4_UP}
  245. {$DEFINE COMPILER35_UP}
  246. {$DEFINE COMPILER3_UP}
  247. {$DEFINE COMPILER2_UP}
  248. {$DEFINE COMPILER1_UP}
  249. {$ENDIF}
  250. {$IFDEF COMPILER7}
  251. {$DEFINE COMPILER7_UP}
  252. {$DEFINE COMPILER6_UP}
  253. {$DEFINE COMPILER5_UP}
  254. {$DEFINE COMPILER4_UP}
  255. {$DEFINE COMPILER35_UP}
  256. {$DEFINE COMPILER3_UP}
  257. {$DEFINE COMPILER2_UP}
  258. {$DEFINE COMPILER1_UP}
  259. {$ENDIF}
  260. {$IFDEF DELPHI6}
  261. {$DEFINE DELPHI6_UP}
  262. {$DEFINE DELPHI5_UP}
  263. {$DEFINE DELPHI4_UP}
  264. {$DEFINE DELPHI3_UP}
  265. {$DEFINE DELPHI2_UP}
  266. {$DEFINE DELPHI1_UP}
  267. {$ENDIF}
  268. {$IFDEF COMPILER6}
  269. {$DEFINE COMPILER6_UP}
  270. {$DEFINE COMPILER5_UP}
  271. {$DEFINE COMPILER4_UP}
  272. {$DEFINE COMPILER35_UP}
  273. {$DEFINE COMPILER3_UP}
  274. {$DEFINE COMPILER2_UP}
  275. {$DEFINE COMPILER1_UP}
  276. {$ENDIF}
  277. {$IFDEF DELPHI5}
  278. {$DEFINE DELPHI5_UP}
  279. {$DEFINE DELPHI4_UP}
  280. {$DEFINE DELPHI3_UP}
  281. {$DEFINE DELPHI2_UP}
  282. {$DEFINE DELPHI1_UP}
  283. {$ENDIF}
  284. {$IFDEF COMPILER5}
  285. {$DEFINE COMPILER5_UP}
  286. {$DEFINE COMPILER4_UP}
  287. {$DEFINE COMPILER35_UP}
  288. {$DEFINE COMPILER3_UP}
  289. {$DEFINE COMPILER2_UP}
  290. {$DEFINE COMPILER1_UP}
  291. {$ENDIF}
  292. {$IFDEF DELPHI4}
  293. {$DEFINE DELPHI4_UP}
  294. {$DEFINE DELPHI3_UP}
  295. {$DEFINE DELPHI2_UP}
  296. {$DEFINE DELPHI1_UP}
  297. {$ENDIF}
  298. {$IFDEF COMPILER4}
  299. {$DEFINE COMPILER4_UP}
  300. {$DEFINE COMPILER35_UP}
  301. {$DEFINE COMPILER3_UP}
  302. {$DEFINE COMPILER2_UP}
  303. {$DEFINE COMPILER1_UP}
  304. {$ENDIF}
  305. {$IFDEF COMPILER35}
  306. {$DEFINE COMPILER35_UP}
  307. {$DEFINE COMPILER3_UP}
  308. {$DEFINE COMPILER2_UP}
  309. {$DEFINE COMPILER1_UP}
  310. {$ENDIF}
  311. {$IFDEF DELPHI3}
  312. {$DEFINE DELPHI3_UP}
  313. {$DEFINE DELPHI2_UP}
  314. {$DEFINE DELPHI1_UP}
  315. {$ENDIF}
  316. {$IFDEF COMPILER3}
  317. {$DEFINE COMPILER3_UP}
  318. {$DEFINE COMPILER2_UP}
  319. {$DEFINE COMPILER1_UP}
  320. {$ENDIF}
  321. {$IFDEF DELPHI2}
  322. {$DEFINE DELPHI2_UP}
  323. {$DEFINE DELPHI1_UP}
  324. {$ENDIF}
  325. {$IFDEF COMPILER2}
  326. {$DEFINE COMPILER2_UP}
  327. {$DEFINE COMPILER1_UP}
  328. {$ENDIF}
  329. {$IFDEF DELPHI1}
  330. {$DEFINE DELPHI1_UP}
  331. {$ENDIF}
  332. {$IFDEF COMPILER1}
  333. {$DEFINE COMPILER1_UP}
  334. {$ENDIF}
  335. {$IFDEF BCB7}
  336. {$DEFINE BCB7_UP}
  337. {$DEFINE BCB6_UP}
  338. {$DEFINE BCB5_UP}
  339. {$DEFINE BCB4_UP}
  340. {$DEFINE BCB3_UP}
  341. {$DEFINE BCB1_UP}
  342. {$ENDIF}
  343. {$IFDEF BCB6}
  344. {$DEFINE BCB6_UP}
  345. {$DEFINE BCB5_UP}
  346. {$DEFINE BCB4_UP}
  347. {$DEFINE BCB3_UP}
  348. {$DEFINE BCB1_UP}
  349. {$ENDIF}
  350. {$IFDEF BCB5}
  351. {$DEFINE BCB5_UP}
  352. {$DEFINE BCB4_UP}
  353. {$DEFINE BCB3_UP}
  354. {$DEFINE BCB1_UP}
  355. {$ENDIF}
  356. {$IFDEF BCB4}
  357. {$DEFINE BCB4_UP}
  358. {$DEFINE BCB3_UP}
  359. {$DEFINE BCB1_UP}
  360. {$ENDIF}
  361. {$IFDEF BCB3}
  362. {$DEFINE BCB3_UP}
  363. {$DEFINE BCB1_UP}
  364. {$ENDIF}
  365. {$IFDEF BCB1}
  366. {$DEFINE BCB1_UP}
  367. {$ENDIF}
  368. { TStream class support 64 bit seek }
  369. {$IFNDEF FPC} { Not for FPC ! }
  370. {$IFDEF COMPILER6_UP} { OK for Delphi/BCB 6 and up }
  371. {$DEFINE STREAM64}
  372. {$ENDIF}
  373. {$ENDIF}
  374. {$IFNDEF DELPHI1} { Only Delphi1 lack windows unit }
  375. {$DEFINE USEWINDOWS} { Use "Windows" unit. }
  376. {$ENDIF}
  377. {$IFDEF DELPHI6_UP}
  378. {$WARN SYMBOL_PLATFORM OFF}
  379. {$WARN UNIT_PLATFORM OFF}
  380. {$WARN UNIT_DEPRECATED OFF}
  381. {$ENDIF}
  382. {$IFDEF DELPHI7_UP}
  383. {$WARN UNSAFE_CODE OFF}
  384. {$WARN UNSAFE_TYPE OFF}
  385. {$WARN UNSAFE_CAST OFF}
  386. {$ENDIF}