sysdlh.inc 897 B

123456789101112131415161718192021222324252627282930
  1. {
  2. This file is part of the Free Pascal run time library.
  3. Copyright (c) 1999-2000 by the Free Pascal development team
  4. Implement OS-dependent part of dynamic library loading.
  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. Type
  12. { using PtrInt here is compliant with the other platforms }
  13. TLibHandle = PtrInt;
  14. Const
  15. NilHandle = TLibHandle(0);
  16. // these are for easier crossplatform construction of dll names in dynloading libs.
  17. {$if defined(Darwin)}
  18. SharedSuffix = 'dylib';
  19. {$elseif defined(aix)}
  20. SharedSuffix = 'a';
  21. {$else}
  22. SharedSuffix = 'so';
  23. {$endif}