classes.pp 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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 BeOS
  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. interface
  24. {$IFDEF FPC_DOTTEDUNITS}
  25. uses
  26. System.SysUtils,
  27. System.RtlConsts,
  28. System.Types,
  29. System.TypInfo,
  30. System.SortBase;
  31. {$ELSE FPC_DOTTEDUNITS}
  32. uses
  33. sysutils,
  34. rtlconsts,
  35. types,
  36. typinfo,
  37. sortbase;
  38. {$ENDIF FPC_DOTTEDUNITS}
  39. {$i classesh.inc}
  40. implementation
  41. {$IFDEF FPC_DOTTEDUNITS}
  42. uses
  43. UnixApi.Base,UnixApi.Unix;
  44. {$ELSE FPC_DOTTEDUNITS}
  45. uses
  46. baseunix,unix;
  47. {$ENDIF FPC_DOTTEDUNITS}
  48. { OS - independent class implementations are in /inc directory. }
  49. {$i classes.inc}
  50. initialization
  51. CommonInit;
  52. finalization
  53. CommonCleanup;
  54. {$ifndef ver1_0}
  55. if ThreadsInited then
  56. DoneThreads;
  57. {$endif}
  58. end.