* SharedSuffix

git-svn-id: trunk@10825 -
This commit is contained in:
marco 2008-04-27 20:33:33 +00:00
parent 971e54c113
commit 03c02a17e9

View File

@ -45,7 +45,23 @@ Function GetProcAddress(Lib : TlibHandle; ProcName : AnsiString) : Pointer;
Type
HModule = TLibHandle;
// these are for easier crossplatform construction of dll names in dynloading libs.
Const
{$ifdef Windows}
SharedSuffix = 'dll';
{$else}
{$ifdef Darwin}
SharedSuffix = 'dylib';
{$else}
{$ifdef OS2}
SharedSuffix = 'dll';
{$else}
SharedSuffix = 'so';
{$endif}
{$endif}
{$endif}
Implementation
{ ---------------------------------------------------------------------