mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-13 00:09:32 +02:00
* SharedSuffix moved to include files to reduce number of ifdefs
git-svn-id: trunk@14902 -
This commit is contained in:
parent
ef4954f8d9
commit
5c31042f6a
@ -113,21 +113,6 @@ function LoadLibrarySymbols(const Lib: TLibHandle; const Symbols: PLibSymbol; co
|
||||
procedure ClearLibrarySymbols(const Symbols: PLibSymbol; const Count: Integer);
|
||||
|
||||
|
||||
// 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
|
||||
|
||||
|
@ -24,6 +24,8 @@ Type
|
||||
|
||||
Const
|
||||
NilHandle = Nil;
|
||||
// these are for easier crossplatform construction of dll names in dynloading libs.
|
||||
SharedSuffix = 'so';
|
||||
|
||||
{$else}
|
||||
|
||||
|
@ -25,6 +25,8 @@ type
|
||||
|
||||
const
|
||||
NilHandle = 0;
|
||||
// these are for easier crossplatform construction of dll names in dynloading libs.
|
||||
SharedSuffix = 'dll';
|
||||
|
||||
{$else}
|
||||
|
||||
|
@ -25,6 +25,12 @@ Type
|
||||
|
||||
Const
|
||||
NilHandle = TLibHandle(0);
|
||||
// these are for easier crossplatform construction of dll names in dynloading libs.
|
||||
{$ifdef Darwin}
|
||||
SharedSuffix = 'dylib';
|
||||
{$else Darwin}
|
||||
SharedSuffix = 'so';
|
||||
{$endif Darwin}
|
||||
|
||||
{$else}
|
||||
|
||||
|
@ -25,6 +25,8 @@ Type
|
||||
|
||||
Const
|
||||
NilHandle = 0;
|
||||
// these are for easier crossplatform construction of dll names in dynloading libs.
|
||||
SharedSuffix = 'dll';
|
||||
|
||||
{$else}
|
||||
|
||||
|
@ -25,6 +25,8 @@ Type
|
||||
|
||||
Const
|
||||
NilHandle = 0;
|
||||
// these are for easier crossplatform construction of dll names in dynloading libs.
|
||||
SharedSuffix = 'dll';
|
||||
|
||||
{$else}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user