mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 03:09:11 +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);
|
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
|
Implementation
|
||||||
|
|
||||||
|
@ -24,6 +24,8 @@ Type
|
|||||||
|
|
||||||
Const
|
Const
|
||||||
NilHandle = Nil;
|
NilHandle = Nil;
|
||||||
|
// these are for easier crossplatform construction of dll names in dynloading libs.
|
||||||
|
SharedSuffix = 'so';
|
||||||
|
|
||||||
{$else}
|
{$else}
|
||||||
|
|
||||||
|
@ -25,6 +25,8 @@ type
|
|||||||
|
|
||||||
const
|
const
|
||||||
NilHandle = 0;
|
NilHandle = 0;
|
||||||
|
// these are for easier crossplatform construction of dll names in dynloading libs.
|
||||||
|
SharedSuffix = 'dll';
|
||||||
|
|
||||||
{$else}
|
{$else}
|
||||||
|
|
||||||
|
@ -25,6 +25,12 @@ Type
|
|||||||
|
|
||||||
Const
|
Const
|
||||||
NilHandle = TLibHandle(0);
|
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}
|
{$else}
|
||||||
|
|
||||||
|
@ -25,6 +25,8 @@ Type
|
|||||||
|
|
||||||
Const
|
Const
|
||||||
NilHandle = 0;
|
NilHandle = 0;
|
||||||
|
// these are for easier crossplatform construction of dll names in dynloading libs.
|
||||||
|
SharedSuffix = 'dll';
|
||||||
|
|
||||||
{$else}
|
{$else}
|
||||||
|
|
||||||
|
@ -25,6 +25,8 @@ Type
|
|||||||
|
|
||||||
Const
|
Const
|
||||||
NilHandle = 0;
|
NilHandle = 0;
|
||||||
|
// these are for easier crossplatform construction of dll names in dynloading libs.
|
||||||
|
SharedSuffix = 'dll';
|
||||||
|
|
||||||
{$else}
|
{$else}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user