mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 19:39:20 +02:00
* Different default mechanism
git-svn-id: trunk@25748 -
This commit is contained in:
parent
481b0e7260
commit
376259cc8e
@ -3378,7 +3378,8 @@ uses ctypes,
|
|||||||
{$include ociap.inc}
|
{$include ociap.inc}
|
||||||
|
|
||||||
{$IFDEF LinkDynamically}
|
{$IFDEF LinkDynamically}
|
||||||
Function InitialiseOCI(const LibraryName: AnsiString = ocilib): integer;
|
Function InitialiseOCI(const LibraryName: AnsiString): integer;
|
||||||
|
Function InitialiseOCI(): integer;
|
||||||
Procedure ReleaseOCI;
|
Procedure ReleaseOCI;
|
||||||
|
|
||||||
var OCILibraryHandle : TLibHandle;
|
var OCILibraryHandle : TLibHandle;
|
||||||
@ -3394,7 +3395,16 @@ implementation
|
|||||||
var
|
var
|
||||||
RefCount : integer;
|
RefCount : integer;
|
||||||
|
|
||||||
function InitialiseOCI(const LibraryName: AnsiString = ocilib): integer;
|
Function InitialiseOCI(): integer;
|
||||||
|
|
||||||
|
begin
|
||||||
|
if (OCILoadedLibrary='') then
|
||||||
|
Result:=InitialiseOCI(OCILib)
|
||||||
|
else
|
||||||
|
Result:=InitialiseOCI(OCILoadedLibrary);
|
||||||
|
end;
|
||||||
|
|
||||||
|
function InitialiseOCI(const LibraryName: AnsiString): integer;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
inc(RefCount);
|
inc(RefCount);
|
||||||
|
Loading…
Reference in New Issue
Block a user