classes.pp 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. {
  2. This file is part of the Free Component Library (FCL)
  3. Copyright (c) 1999-2002 by the Free Pascal development team
  4. Classes unit for Embedded target
  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. {$IFNDEF FPC_DOTTEDUNITS}
  30. unit Classes;
  31. {$ENDIF FPC_DOTTEDUNITS}
  32. interface
  33. {$IFDEF FPC_DOTTEDUNITS}
  34. uses
  35. System.SysUtils,
  36. System.RtlConsts,
  37. System.Types,
  38. System.SortBase,
  39. {$ifdef FPC_TESTGENERICS}
  40. System.FGL,
  41. {$endif}
  42. {$ifdef FPC_USE_INTRINSICS}
  43. System.Intrinsics,
  44. {$endif}
  45. System.TypInfo;
  46. {$ELSE FPC_DOTTEDUNITS}
  47. uses
  48. sysutils,
  49. rtlconsts,
  50. types,
  51. sortbase,
  52. {$ifdef FPC_TESTGENERICS}
  53. fgl,
  54. {$endif}
  55. {$ifdef FPC_USE_INTRINSICS}
  56. intrinsics,
  57. {$endif}
  58. typinfo;
  59. {$ENDIF FPC_DOTTEDUNITS}
  60. { Also set FPC_USE_INTRINSICS for i386 and x86_64,
  61. but only after _USES clause as there
  62. is not intinsics unit for those CPUs }
  63. {$IF FPC_FULLVERSION>=30301}
  64. {$ifndef CPULLVM}
  65. {$if defined(CPUI386) or defined(CPUX86_64)}
  66. {$define FPC_USE_INTRINSICS}
  67. {$endif}
  68. {$endif}
  69. {$endif}
  70. {$i classesh.inc}
  71. implementation
  72. { OS - independent class implementations are in /inc directory. }
  73. {$i classes.inc}
  74. initialization
  75. CommonInit;
  76. finalization
  77. CommonCleanup;
  78. end.