classes.pp 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. {
  2. This file is part of the Free Component Library (FCL)
  3. Copyright (c) 1998 by Michael Van Canneyt and Florian Klaempfl
  4. Classes unit for wince
  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. interface
  23. {$IFDEF FPC_DOTTEDUNITS}
  24. uses
  25. System.RtlConsts,
  26. System.SysUtils,
  27. System.Types,
  28. System.SortBase,
  29. {$ifdef FPC_TESTGENERICS}
  30. System.FGL,
  31. {$endif}
  32. System.TypInfo,
  33. WinApi.Windows;
  34. {$ELSE FPC_DOTTEDUNITS}
  35. uses
  36. rtlconsts,
  37. sysutils,
  38. types,
  39. sortbase,
  40. {$ifdef FPC_TESTGENERICS}
  41. fgl,
  42. {$endif}
  43. typinfo,
  44. windows;
  45. {$ENDIF FPC_DOTTEDUNITS}
  46. type
  47. TWndMethod = procedure(var msg : TMessage) of object;
  48. {$i classesh.inc}
  49. implementation
  50. {$IFDEF FPC_DOTTEDUNITS}
  51. uses
  52. System.SysConst;
  53. {$ELSE FPC_DOTTEDUNITS}
  54. uses
  55. sysconst;
  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. end.