classes.pp 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. {
  2. This file is part of the Free Component Library (FCL)
  3. Copyright (c) 1999-2000 by Michael Van Canneyt and Florian Klaempfl
  4. Classes unit for linux
  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. {$IF FPC_FULLVERSION>=30301}
  14. {$modeswitch FUNCTIONREFERENCES}
  15. {$define FPC_HAS_REFERENCE_PROCEDURE}
  16. {$endif}
  17. { determine the type of the resource/form file }
  18. {$define Win16Res}
  19. {$IFNDEF FPC_DOTTEDUNITS}
  20. unit Classes;
  21. {$ENDIF FPC_DOTTEDUNITS}
  22. {$INLINE ON}
  23. interface
  24. {$IFDEF FPC_DOTTEDUNITS}
  25. uses
  26. System.SysUtils,
  27. System.Types,
  28. System.TypInfo,
  29. {$ifdef FPC_TESTGENERICS}
  30. System.FGL,
  31. {$endif}
  32. System.RtlConsts,
  33. System.SortBase;
  34. {$ELSE FPC_DOTTEDUNITS}
  35. uses
  36. sysutils,
  37. types,
  38. typinfo,
  39. {$ifdef FPC_TESTGENERICS}
  40. fgl,
  41. {$endif}
  42. rtlconsts,
  43. sortbase;
  44. {$ENDIF FPC_DOTTEDUNITS}
  45. {$i classesh.inc}
  46. implementation
  47. {$IFDEF FPC_DOTTEDUNITS}
  48. uses
  49. UnixApi.Base,UnixApi.Unix
  50. ;
  51. {$ELSE FPC_DOTTEDUNITS}
  52. uses
  53. BaseUnix,unix
  54. ;
  55. {$ENDIF FPC_DOTTEDUNITS}
  56. { OS - independent class implementations are in /inc directory. }
  57. {$i classes.inc}
  58. initialization
  59. CommonInit;
  60. finalization
  61. CommonCleanup;
  62. if ThreadsInited then
  63. DoneThreads;
  64. end.