├── README ├── UHojaCalc.pas ├── boss.json └── Compilers.inc /README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergio-hcsoft/Delphi-SpreadSheets/HEAD/README -------------------------------------------------------------------------------- /UHojaCalc.pas: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sergio-hcsoft/Delphi-SpreadSheets/HEAD/UHojaCalc.pas -------------------------------------------------------------------------------- /boss.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Delphi-SpreadSheets", 3 | "description": "", 4 | "version": "1.0.0", 5 | "homepage": "", 6 | "mainsrc": "./", 7 | "projects": [], 8 | "dependencies": {} 9 | } -------------------------------------------------------------------------------- /Compilers.inc: -------------------------------------------------------------------------------- 1 | //---------------------------------------------------------------------------------------------------------------------- 2 | // Include file to determine which compiler is currently being used to build the project/component. 3 | // This file uses ideas from Brad Stowers DFS.inc file. 4 | // 5 | // Portions created by Mike Lischke are 6 | // Copyright (C) 1999, 2008 Mike Lischke. All Rights Reserved. 7 | // Portions created by Jim Kueneman are 8 | // Copyright (C) 2005, 2008 Jim Kueneman. All Rights Reserved. 9 | // 10 | //---------------------------------------------------------------------------------------------------------------------- 11 | // 12 | // This unit is released under the MIT license: 13 | // Copyright (c) 1999, 2008 Mike Lischke (support@soft-gems.net, www.soft-gems.net). 14 | // 15 | // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 16 | // documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 17 | // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to 18 | // permit persons to whom the Software is furnished to do so, subject to the following conditions: 19 | // 20 | // The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 21 | // Software. 22 | // 23 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 24 | // WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS 25 | // OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 26 | // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 27 | // 28 | // You are asked to give the author(s) the due credit. This means that you acknowledge the work of the author(s) 29 | // in the product documentation, about box, help or wherever a prominent place is. 30 | // 31 | //---------------------------------------------------------------------------------------------------------------------- 32 | // 33 | // The following symbols are defined: 34 | // 35 | // - COMPILER_1 : Kylix/Delphi/BCB 1.x is the compiler. 36 | // - COMPILER_1_UP : Kylix/Delphi/BCB 1.x or higher is the compiler. 37 | // - COMPILER_2 : Kylix/Delphi 2.x or BCB 1.x is the compiler. 38 | // - COMPILER_2_UP : Kylix/Delphi 2.x or higher, or BCB 1.x or higher is the compiler. 39 | // - COMPILER_3 : Kylix/Delphi/BCB 3.x is the compiler. 40 | // - COMPILER_3_UP : Kylix/Delphi/BCB 3.x or higher is the compiler. 41 | // - COMPILER_4 : Kylix/Delphi/BCB 4.x is the compiler. 42 | // - COMPILER_4_UP : Kylix/Delphi/BCB 4.x or higher is the compiler. 43 | // - COMPILER_5 : Kylix/Delphi/BCB 5.x is the compiler. 44 | // - COMPILER_5_UP : Kylix/Delphi/BCB 5.x or higher is the compiler. 45 | // - COMPILER_6 : Kylix/Delphi/BCB 6.x is the compiler. 46 | // - COMPILER_6_UP : Kylix/Delphi/BCB 6.x or higher is the compiler. 47 | // - COMPILER_7 : Kylix/Delphi/BCB 7.x is the compiler. 48 | // - COMPILER_7_UP : Kylix/Delphi/BCB 7.x or higher is the compiler. 49 | // - COMPILER_8 : Kylix/Delphi/BCB 8.x is the compiler. 50 | // - COMPILER_8_UP : Kylix/Delphi/BCB 8.x or higher is the compiler. 51 | // - COMPILER_9 : Kylix/Delphi/BCB 9.x is the compiler. 52 | // - COMPILER_9_UP : Kylix/Delphi/BCB 9.x or higher is the compiler. 53 | // - COMPILER_10 : Kylix/Delphi/BCB 10.x is the compiler. 54 | // - COMPILER_10_UP : Kylix/Delphi/BCB 10.x or higher is the compiler. 55 | // - COMPILER_11 : Kylix/Delphi/BCB 11.x is the compiler. 56 | // - COMPILER_11_UP : Kylix/Delphi/BCB 11.x or higher is the compiler. 57 | // - COMPILER_12 : Kylix/Delphi/BCB 12.x is the compiler. 58 | // - COMPILER_12_UP : Kylix/Delphi/BCB 12.x or higher is the compiler. 59 | // - COMPILER_14 : Kylix/Delphi/BCB 14.x is the compiler. 60 | // - COMPILER_14_UP : Kylix/Delphi/BCB 14.x or higher is the compiler. 61 | // - COMPILER_15 : Kylix/Delphi/BCB 15.x is the compiler. 62 | // - COMPILER_15_UP : Kylix/Delphi/BCB 15.x or higher is the compiler. 63 | // 64 | // Only defined if Windows is the target: 65 | // - CPPB : Any version of BCB is being used. 66 | // - CPPB_1 : BCB v1.x is being used. 67 | // - CPPB_3 : BCB v3.x is being used. 68 | // - CPPB_3_UP : BCB v3.x or higher is being used. 69 | // - CPPB_4 : BCB v4.x is being used. 70 | // - CPPB_4_UP : BCB v4.x or higher is being used. 71 | // - CPPB_5 : BCB v5.x is being used. 72 | // - CPPB_5_UP : BCB v5.x or higher is being used. 73 | // - CPPB_6 : BCB v6.x is being used. 74 | // - CPPB_6_UP : BCB v6.x or higher is being used. 75 | // - CPPB_XXX is not used any more, use the COMPILER_XXX defines 76 | // 77 | // Only defined if Windows is the target: 78 | // - DELPHI : Any version of Delphi is being used. 79 | // - DELPHI_1 : Delphi v1.x is being used. 80 | // - DELPHI_2 : Delphi v2.x is being used. 81 | // - DELPHI_2_UP : Delphi v2.x or higher is being used. 82 | // - DELPHI_3 : Delphi v3.x is being used. 83 | // - DELPHI_3_UP : Delphi v3.x or higher is being used. 84 | // - DELPHI_4 : Delphi v4.x is being used. 85 | // - DELPHI_4_UP : Delphi v4.x or higher is being used. 86 | // - DELPHI_5 : Delphi v5.x is being used. 87 | // - DELPHI_5_UP : Delphi v5.x or higher is being used. 88 | // - DELPHI_6 : Delphi v6.x is being used. 89 | // - DELPHI_6_UP : Delphi v6.x or higher is being used. 90 | // - DELPHI_7 : Delphi v7.x is being used. 91 | // - DELPHI_7_UP : Delphi v7.x or higher is being used. 92 | // - DELPHI_8 : Delphi v8.x is being used. 93 | // - DELPHI_8_UP : Delphi v8.x or higher is being used. 94 | // - DELPHI_9 : Delphi v9.x is being used. 95 | // - DELPHI_9_UP : Delphi v9.x or higher is being used. 96 | // - DELPHI_XXX is not used any more, use the COMPILER_XXX defines 97 | // 98 | // Only defined if Linux is the target: 99 | // - KYLIX : Any version of Kylix is being used. 100 | // - KYLIX_1 : Kylix 1.x is being used. 101 | // - KYLIX_1_UP : Kylix 1.x or higher is being used. 102 | // - KYLIX_2 : Kylix 2.x is being used. 103 | // - KYLIX_2_UP : Kylix 2.x or higher is being used. 104 | // - KYLIX_3 : Kylix 3.x is being used. 105 | // - KYLIX_3_UP : Kylix 3.x or higher is being used. 106 | // 107 | // Only defined if Linux is the target: 108 | // - QT_CLX : Trolltech's QT library is being used. 109 | // 110 | // Only defined if Delphi.NET is the target: 111 | // - DELPHI.NET : Any version of Delphi.NET is being used. 112 | // - DELPHI.NET_1 : Delphi.NET version 1.x is being used. 113 | // - DELPHI.NET_1_UP : Delphi.NET version 1.x is being used. 114 | //---------------------------------------------------------------------------------------------------------------------- 115 | 116 | {$ifdef CLR} // The common language runtime symbol is only defined for the .NET platform. 117 | {$define DELPHI.NET} 118 | {$ifdef VER160} 119 | {$define DELPHI.NET_1} 120 | {$endif VER160} 121 | 122 | // Compiler defines common to all .NET versions. 123 | {$ifdef DELPHI.NET_1} 124 | {$define DELHI.NET_1_UP} 125 | {$endif DELPHI.NET_1} 126 | {$endif CLR} 127 | 128 | {$ifdef Win32} 129 | 130 | // Compiler defines not specific to a particlular platform. 131 | 132 | // RAD Studio XE (BDS 8.0) DELPHI and BCB are no longer defined, only COMPILER 133 | {$ifdef VER220} 134 | {$define COMPILER_15} 135 | {$endif VER220} 136 | 137 | // RAD Studio 2010 (BDS 7.0) DELPHI and BCB are no longer defined, only COMPILER 138 | {$ifdef VER210} 139 | {$define COMPILER_14} 140 | {$endif VER210} 141 | 142 | // RAD Studio 2009 (BDS 6.0) DELPHI and BCB are no longer defined, only COMPILER 143 | {$ifdef VER200} 144 | {$define COMPILER_12} 145 | {$endif VER200} 146 | 147 | // RAD Studio 2007 (BDS 5.0) DELPHI and BCB are no longer defined, only COMPILER 148 | {$ifdef VER190} 149 | {$define COMPILER_11} 150 | {$endif VER190} 151 | 152 | // DELPHI and BCB are no longer defined, only COMPILER 153 | {$ifdef VER180} 154 | {$define COMPILER_10} 155 | {$endif VER180} 156 | 157 | {$ifdef VER170} 158 | {$define COMPILER_9} 159 | {$define DELPHI} 160 | {$define DELPHI_9} 161 | {$endif VER170} 162 | 163 | {$ifdef VER160} 164 | {$define COMPILER_8} 165 | {$define DELPHI} 166 | {$define DELPHI_8} 167 | {$endif VER160} 168 | 169 | {$ifdef VER150} 170 | {$define COMPILER_7} 171 | {$define DELPHI} 172 | {$define DELPHI_7} 173 | {$endif} 174 | 175 | {$ifdef VER140} 176 | {$define COMPILER_6} 177 | {$ifdef BCB} 178 | {$define CPPB} 179 | {$define CPPB_6} 180 | {$else} 181 | {$define DELPHI} 182 | {$define DELPHI_6} 183 | {$endif} 184 | {$endif} 185 | 186 | {$ifdef VER130} 187 | {$define COMPILER_5} 188 | {$ifdef BCB} 189 | {$define CPPB} 190 | {$define CPPB_5} 191 | {$else} 192 | {$define DELPHI} 193 | {$define DELPHI_5} 194 | {$endif} 195 | {$endif} 196 | 197 | {$ifdef VER125} 198 | {$define COMPILER_4} 199 | {$define CPPB} 200 | {$define CPPB_4} 201 | {$endif} 202 | 203 | {$ifdef VER120} 204 | {$define COMPILER_4} 205 | {$define DELPHI} 206 | {$define DELPHI_4} 207 | {$endif} 208 | 209 | {$ifdef VER110} 210 | {$define COMPILER_3} 211 | {$define CPPB} 212 | {$define CPPB_3} 213 | {$endif} 214 | 215 | {$ifdef VER100} 216 | {$define COMPILER_3} 217 | {$define DELPHI} 218 | {$define DELPHI_3} 219 | {$endif} 220 | 221 | {$ifdef VER93} 222 | {$define COMPILER_2} // C++ Builder v1 compiler is really v2 223 | {$define CPPB} 224 | {$define CPPB_1} 225 | {$endif} 226 | 227 | {$ifdef VER90} 228 | {$define COMPILER_2} 229 | {$define DELPHI} 230 | {$define DELPHI_2} 231 | {$endif} 232 | 233 | {$ifdef VER80} 234 | {$define COMPILER_1} 235 | {$define DELPHI} 236 | {$define DELPHI_1} 237 | {$endif} 238 | 239 | {$ifdef DELPHI_2} 240 | {$define DELPHI_2_UP} 241 | {$endif} 242 | 243 | {$ifdef DELPHI_3} 244 | {$define DELPHI_2_UP} 245 | {$define DELPHI_3_UP} 246 | {$endif} 247 | 248 | {$ifdef DELPHI_4} 249 | {$define DELPHI_2_UP} 250 | {$define DELPHI_3_UP} 251 | {$define DELPHI_4_UP} 252 | {$endif} 253 | 254 | {$ifdef DELPHI_5} 255 | {$define DELPHI_2_UP} 256 | {$define DELPHI_3_UP} 257 | {$define DELPHI_4_UP} 258 | {$define DELPHI_5_UP} 259 | {$endif} 260 | 261 | {$ifdef DELPHI_6} 262 | {$define DELPHI_2_UP} 263 | {$define DELPHI_3_UP} 264 | {$define DELPHI_4_UP} 265 | {$define DELPHI_5_UP} 266 | {$define DELPHI_6_UP} 267 | {$endif} 268 | 269 | {$ifdef DELPHI_7} 270 | {$define DELPHI_2_UP} 271 | {$define DELPHI_3_UP} 272 | {$define DELPHI_4_UP} 273 | {$define DELPHI_5_UP} 274 | {$define DELPHI_6_UP} 275 | {$define DELPHI_7_UP} 276 | {$endif} 277 | 278 | {$ifdef DELPHI_8} 279 | {$define DELPHI_2_UP} 280 | {$define DELPHI_3_UP} 281 | {$define DELPHI_4_UP} 282 | {$define DELPHI_5_UP} 283 | {$define DELPHI_6_UP} 284 | {$define DELPHI_7_UP} 285 | {$define DELPHI_8_UP} 286 | {$endif} 287 | 288 | {$ifdef DELPHI_9} 289 | {$define DELPHI_2_UP} 290 | {$define DELPHI_3_UP} 291 | {$define DELPHI_4_UP} 292 | {$define DELPHI_5_UP} 293 | {$define DELPHI_6_UP} 294 | {$define DELPHI_7_UP} 295 | {$define DELPHI_8_UP} 296 | {$define DELPHI_9_UP} 297 | {$endif} 298 | 299 | {$ifdef CPPB_3} 300 | {$define CPPB_3_UP} 301 | {$endif} 302 | 303 | {$ifdef CPPB_4} 304 | {$define CPPB_3_UP} 305 | {$define CPPB_4_UP} 306 | {$endif} 307 | 308 | {$ifdef CPPB_5} 309 | {$define CPPB_3_UP} 310 | {$define CPPB_4_UP} 311 | {$define CPPB_5_UP} 312 | {$endif} 313 | 314 | {$ifdef CPPB_6} 315 | {$define CPPB_3_UP} 316 | {$define CPPB_4_UP} 317 | {$define CPPB_5_UP} 318 | {$define CPPB_6_UP} 319 | {$endif} 320 | 321 | {$ifdef CPPB_3_UP} 322 | // C++ Builder requires this if you use Delphi components in run-time packages. 323 | {$ObjExportAll On} 324 | {$endif} 325 | 326 | {$else (not Windows)} 327 | // Linux is the target 328 | {$define QT_CLX} 329 | 330 | {$define KYLIX} 331 | 332 | {$ifdef VER140} 333 | {$define COMPILER_6} 334 | {$ifdef conditionalexpressions} 335 | {$if Declared(RTLVersion) and (RTLVersion = 14)} 336 | {$define KYLIX_1} 337 | {$ifend} 338 | 339 | {$if Declared(RTLVersion) and (RTLVersion = 14.2)} 340 | {$define KYLIX_2} 341 | {$ifend} 342 | 343 | {$if Declared(RTLVersion) and (RTLVersion = 14.5)} 344 | {$define KYLIX_3} 345 | {$ifend} 346 | {$endif} 347 | {$endif} 348 | 349 | {$ifdef VER150} 350 | {$define COMPILER_7} 351 | {$define KYLIX_3} 352 | {$endif} 353 | 354 | {$ifdef VER140} 355 | {$define COMPILER_6} 356 | {$define KYLIX_2} 357 | {$endif} 358 | 359 | {$ifdef KYLIX_1} 360 | {$define KYLIX_1_UP} 361 | {$endif} 362 | 363 | {$ifdef KYLIX_2} 364 | {$define KYLIX_2_UP} 365 | {$endif} 366 | 367 | {$ifdef KYLIX_3} 368 | {$define KYLIX_2_UP} 369 | {$define KYLIX_3_UP} 370 | {$endif} 371 | 372 | {$endif Win32} 373 | 374 | 375 | {$ifdef COMPILER_1} 376 | {$define COMPILER_1_UP} 377 | {$endif} 378 | 379 | {$ifdef COMPILER_2} 380 | {$define COMPILER_1_UP} 381 | {$define COMPILER_2_UP} 382 | {$endif} 383 | 384 | {$ifdef COMPILER_3} 385 | {$define COMPILER_1_UP} 386 | {$define COMPILER_2_UP} 387 | {$define COMPILER_3_UP} 388 | {$endif} 389 | 390 | {$ifdef COMPILER_4} 391 | {$define COMPILER_1_UP} 392 | {$define COMPILER_2_UP} 393 | {$define COMPILER_3_UP} 394 | {$define COMPILER_4_UP} 395 | {$endif} 396 | 397 | {$ifdef COMPILER_5} 398 | {$define COMPILER_1_UP} 399 | {$define COMPILER_2_UP} 400 | {$define COMPILER_3_UP} 401 | {$define COMPILER_4_UP} 402 | {$define COMPILER_5_UP} 403 | {$endif} 404 | 405 | {$ifdef COMPILER_6} 406 | {$define COMPILER_1_UP} 407 | {$define COMPILER_2_UP} 408 | {$define COMPILER_3_UP} 409 | {$define COMPILER_4_UP} 410 | {$define COMPILER_5_UP} 411 | {$define COMPILER_6_UP} 412 | {$endif} 413 | 414 | {$ifdef COMPILER_7} 415 | {$define COMPILER_1_UP} 416 | {$define COMPILER_2_UP} 417 | {$define COMPILER_3_UP} 418 | {$define COMPILER_4_UP} 419 | {$define COMPILER_5_UP} 420 | {$define COMPILER_6_UP} 421 | {$define COMPILER_7_UP} 422 | {$endif} 423 | 424 | {$ifdef COMPILER_8} 425 | {$define COMPILER_1_UP} 426 | {$define COMPILER_2_UP} 427 | {$define COMPILER_3_UP} 428 | {$define COMPILER_4_UP} 429 | {$define COMPILER_5_UP} 430 | {$define COMPILER_6_UP} 431 | {$define COMPILER_7_UP} 432 | {$define COMPILER_8_UP} 433 | {$endif} 434 | 435 | {$ifdef COMPILER_9} 436 | {$define COMPILER_1_UP} 437 | {$define COMPILER_2_UP} 438 | {$define COMPILER_3_UP} 439 | {$define COMPILER_4_UP} 440 | {$define COMPILER_5_UP} 441 | {$define COMPILER_6_UP} 442 | {$define COMPILER_7_UP} 443 | {$define COMPILER_8_UP} 444 | {$define COMPILER_9_UP} 445 | {$endif} 446 | 447 | {$ifdef COMPILER_10} 448 | {$define COMPILER_1_UP} 449 | {$define COMPILER_2_UP} 450 | {$define COMPILER_3_UP} 451 | {$define COMPILER_4_UP} 452 | {$define COMPILER_5_UP} 453 | {$define COMPILER_6_UP} 454 | {$define COMPILER_7_UP} 455 | {$define COMPILER_8_UP} 456 | {$define COMPILER_9_UP} 457 | {$define COMPILER_10_UP} 458 | // Backwards compatibility 459 | {$define DELPHI_2_UP} 460 | {$define DELPHI_3_UP} 461 | {$define DELPHI_4_UP} 462 | {$define DELPHI_5_UP} 463 | {$define DELPHI_6_UP} 464 | {$define DELPHI_7_UP} 465 | {$define DELPHI_8_UP} 466 | {$define DELPHI_9_UP} 467 | {$define CPPB_3_UP} 468 | {$define CPPB_4_UP} 469 | {$define CPPB_5_UP} 470 | {$define CPPB_6_UP} 471 | 472 | {$ifdef BCB} 473 | {$define CPPB} 474 | {$else} 475 | {$define DELPHI} 476 | {$endif} 477 | 478 | {$endif} 479 | 480 | {$ifdef COMPILER_11} 481 | {$define COMPILER_1_UP} 482 | {$define COMPILER_2_UP} 483 | {$define COMPILER_3_UP} 484 | {$define COMPILER_4_UP} 485 | {$define COMPILER_5_UP} 486 | {$define COMPILER_6_UP} 487 | {$define COMPILER_7_UP} 488 | {$define COMPILER_8_UP} 489 | {$define COMPILER_9_UP} 490 | {$define COMPILER_10_UP} 491 | {$define COMPILER_11_UP} 492 | // Backwards compatibility 493 | {$define DELPHI_2_UP} 494 | {$define DELPHI_3_UP} 495 | {$define DELPHI_4_UP} 496 | {$define DELPHI_5_UP} 497 | {$define DELPHI_6_UP} 498 | {$define DELPHI_7_UP} 499 | {$define DELPHI_8_UP} 500 | {$define DELPHI_9_UP} 501 | {$define CPPB_3_UP} 502 | {$define CPPB_4_UP} 503 | {$define CPPB_5_UP} 504 | {$define CPPB_6_UP} 505 | 506 | {$ifdef BCB} 507 | {$define CPPB} 508 | {$else} 509 | {$define DELPHI} 510 | {$endif} 511 | 512 | {$endif} 513 | 514 | 515 | {$ifdef COMPILER_12} 516 | {$define COMPILER_1_UP} 517 | {$define COMPILER_2_UP} 518 | {$define COMPILER_3_UP} 519 | {$define COMPILER_4_UP} 520 | {$define COMPILER_5_UP} 521 | {$define COMPILER_6_UP} 522 | {$define COMPILER_7_UP} 523 | {$define COMPILER_8_UP} 524 | {$define COMPILER_9_UP} 525 | {$define COMPILER_10_UP} 526 | {$define COMPILER_11_UP} 527 | {$define COMPILER_12_UP} 528 | // Backwards compatibility 529 | {$define DELPHI_2_UP} 530 | {$define DELPHI_3_UP} 531 | {$define DELPHI_4_UP} 532 | {$define DELPHI_5_UP} 533 | {$define DELPHI_6_UP} 534 | {$define DELPHI_7_UP} 535 | {$define DELPHI_8_UP} 536 | {$define DELPHI_9_UP} 537 | {$define CPPB_3_UP} 538 | {$define CPPB_4_UP} 539 | {$define CPPB_5_UP} 540 | {$define CPPB_6_UP} 541 | 542 | {$ifdef BCB} 543 | {$define CPPB} 544 | {$else} 545 | {$define DELPHI} 546 | {$endif} 547 | 548 | {$endif} 549 | 550 | 551 | {$ifdef COMPILER_13} 552 | {$define COMPILER_1_UP} 553 | {$define COMPILER_2_UP} 554 | {$define COMPILER_3_UP} 555 | {$define COMPILER_4_UP} 556 | {$define COMPILER_5_UP} 557 | {$define COMPILER_6_UP} 558 | {$define COMPILER_7_UP} 559 | {$define COMPILER_8_UP} 560 | {$define COMPILER_9_UP} 561 | {$define COMPILER_10_UP} 562 | {$define COMPILER_11_UP} 563 | {$define COMPILER_12_UP} 564 | {$define COMPILER_13_UP} 565 | // Backwards compatibility 566 | {$define DELPHI_2_UP} 567 | {$define DELPHI_3_UP} 568 | {$define DELPHI_4_UP} 569 | {$define DELPHI_5_UP} 570 | {$define DELPHI_6_UP} 571 | {$define DELPHI_7_UP} 572 | {$define DELPHI_8_UP} 573 | {$define DELPHI_9_UP} 574 | {$define CPPB_3_UP} 575 | {$define CPPB_4_UP} 576 | {$define CPPB_5_UP} 577 | {$define CPPB_6_UP} 578 | 579 | {$ifdef BCB} 580 | {$define CPPB} 581 | {$else} 582 | {$define DELPHI} 583 | {$endif} 584 | 585 | {$endif} 586 | 587 | {$ifdef COMPILER_14} 588 | {$define COMPILER_1_UP} 589 | {$define COMPILER_2_UP} 590 | {$define COMPILER_3_UP} 591 | {$define COMPILER_4_UP} 592 | {$define COMPILER_5_UP} 593 | {$define COMPILER_6_UP} 594 | {$define COMPILER_7_UP} 595 | {$define COMPILER_8_UP} 596 | {$define COMPILER_9_UP} 597 | {$define COMPILER_10_UP} 598 | {$define COMPILER_11_UP} 599 | {$define COMPILER_12_UP} 600 | {$define COMPILER_13_UP} 601 | {$define COMPILER_14_UP} 602 | // Backwards compatibility 603 | {$define DELPHI_2_UP} 604 | {$define DELPHI_3_UP} 605 | {$define DELPHI_4_UP} 606 | {$define DELPHI_5_UP} 607 | {$define DELPHI_6_UP} 608 | {$define DELPHI_7_UP} 609 | {$define DELPHI_8_UP} 610 | {$define DELPHI_9_UP} 611 | {$define CPPB_3_UP} 612 | {$define CPPB_4_UP} 613 | {$define CPPB_5_UP} 614 | {$define CPPB_6_UP} 615 | 616 | {$ifdef BCB} 617 | {$define CPPB} 618 | {$else} 619 | {$define DELPHI} 620 | {$endif} 621 | 622 | {$endif} 623 | 624 | 625 | // RAD Studio XE 626 | {$ifdef conditionalexpressions} 627 | {$if CompilerVersion >= 22} 628 | {$define COMPILER_1_UP} 629 | {$define COMPILER_2_UP} 630 | {$define COMPILER_3_UP} 631 | {$define COMPILER_4_UP} 632 | {$define COMPILER_5_UP} 633 | {$define COMPILER_6_UP} 634 | {$define COMPILER_7_UP} 635 | {$define COMPILER_8_UP} 636 | {$define COMPILER_9_UP} 637 | {$define COMPILER_10_UP} 638 | {$define COMPILER_11_UP} 639 | {$define COMPILER_12_UP} 640 | {$define COMPILER_13_UP} 641 | {$define COMPILER_14_UP} 642 | {$define COMPILER_15_UP} 643 | // Backwards compatibility 644 | {$define DELPHI_2_UP} 645 | {$define DELPHI_3_UP} 646 | {$define DELPHI_4_UP} 647 | {$define DELPHI_5_UP} 648 | {$define DELPHI_6_UP} 649 | {$define DELPHI_7_UP} 650 | {$define DELPHI_8_UP} 651 | {$define DELPHI_9_UP} 652 | {$define CPPB_3_UP} 653 | {$define CPPB_4_UP} 654 | {$define CPPB_5_UP} 655 | {$define CPPB_6_UP} 656 | 657 | {$ifdef BCB} 658 | {$define CPPB} 659 | {$else} 660 | {$define DELPHI} 661 | {$endif} 662 | {$ifend} 663 | {$endif} 664 | 665 | //---------------------------------------------------------------------------------------------------------------------- 666 | --------------------------------------------------------------------------------