classes.pp 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. {
  2. This file is part of the Free Component Library (FCL)
  3. Copyright (c) 1999-2011 by the Free Pascal development team
  4. Classes unit for AmigaOS & clones
  5. See the file COPYING.FPC, included in this distribution,
  6. for details about the copyright.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. **********************************************************************}
  11. {$mode objfpc}
  12. {$H+}
  13. {$modeswitch advancedrecords}
  14. {$IF FPC_FULLVERSION>=30301}
  15. {$modeswitch FUNCTIONREFERENCES}
  16. {$define FPC_HAS_REFERENCE_PROCEDURE}
  17. {$ifndef CPULLVM}
  18. {$if DEFINED(CPUARM) or DEFINED(CPUAARCH64)}
  19. {$define FPC_USE_INTRINSICS}
  20. {$endif}
  21. {$if defined(CPUPOWERPC) or defined(CPUPOWERPC64)}
  22. {$define FPC_USE_INTRINSICS}
  23. {$endif}
  24. {$if defined(CPURISCV32) or defined(CPURISCV64)}
  25. {$define FPC_USE_INTRINSICS}
  26. {$endif}
  27. {$endif}
  28. {$endif}
  29. { determine the type of the resource/form file }
  30. {$define Win16Res}
  31. {$IFNDEF FPC_DOTTEDUNITS}
  32. unit Classes;
  33. {$ENDIF FPC_DOTTEDUNITS}
  34. interface
  35. {$IFDEF FPC_DOTTEDUNITS}
  36. uses
  37. System.SysUtils,
  38. System.RtlConsts,
  39. System.Types,
  40. System.SortBase,
  41. {$ifdef FPC_TESTGENERICS}
  42. System.FGL,
  43. {$endif}
  44. {$ifdef FPC_USE_INTRINSICS}
  45. System.Intrinsics,
  46. {$endif}
  47. System.TypInfo;
  48. {$ELSE FPC_DOTTEDUNITS}
  49. uses
  50. sysutils,
  51. rtlconsts,
  52. types,
  53. sortbase,
  54. {$ifdef FPC_TESTGENERICS}
  55. fgl,
  56. {$endif}
  57. {$ifdef FPC_USE_INTRINSICS}
  58. intrinsics,
  59. {$endif}
  60. typinfo;
  61. {$ENDIF FPC_DOTTEDUNITS}
  62. { Also set FPC_USE_INTRINSICS for i386 and x86_64,
  63. but only after _USES clause as there
  64. is not intinsics unit for those CPUs }
  65. {$IF FPC_FULLVERSION>=30301}
  66. {$ifndef CPULLVM}
  67. {$if defined(CPUI386) or defined(CPUX86_64)}
  68. {$define FPC_USE_INTRINSICS}
  69. {$endif}
  70. {$endif}
  71. {$endif}
  72. {$i classesh.inc}
  73. implementation
  74. { OS - independent class implementations are in /inc directory. }
  75. {$i classes.inc}
  76. initialization
  77. CommonInit;
  78. finalization
  79. CommonCleanup;
  80. end.