fpextres.pp 941 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {
  2. This file is part of the Free Pascal run time library.
  3. Copyright (c) 2008 by Giulio Bernardi
  4. External resource support
  5. !!!NEVER USE THIS UNIT DIRECTLY!!!
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************}
  12. unit fpextres;
  13. {$inline on}
  14. interface
  15. implementation
  16. {$ifdef UNIX}
  17. uses
  18. baseunix;
  19. {$endif}
  20. {$ifdef DARWIN}
  21. {$include extres_multiarch.inc}
  22. {$else}
  23. {$ifdef UNIX}
  24. {$define EXTRES_MMAP}
  25. {$else}
  26. {$define EXTRES_GENERIC}
  27. {$endif}
  28. {$include extres.inc}
  29. {$endif}
  30. initialization
  31. InitResources;
  32. SetResourceManager(ExternalResourceManager);
  33. finalization
  34. FinalizeResources;
  35. end.