classes.pp 1.5 KB

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