mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 15:29:25 +02:00
* fix for libxml2xml
git-svn-id: trunk@12689 -
This commit is contained in:
parent
3f7f4a9ddf
commit
57e65411ad
@ -21,6 +21,7 @@ uses
|
||||
{$IFDEF UNIX}
|
||||
//unixtype,
|
||||
{$ENDIF}
|
||||
dynlibs,
|
||||
ctypes;
|
||||
|
||||
//{$IF Sizeof(cbool) <> Sizeof(cint)}
|
||||
@ -32,7 +33,7 @@ const
|
||||
xml2lib = 'libxml2.dll';
|
||||
{$DEFINE EXTDECL := cdecl}
|
||||
{$ELSEIF Defined(UNIX)}
|
||||
xml2lib = 'libxml2.so';
|
||||
xml2lib = 'libxml2'+sharedsuffix;
|
||||
{$DEFINE EXTDECL := cdecl}
|
||||
{$ELSE}
|
||||
{$MESSAGE ERROR 'DYNLINK not supported'}
|
||||
@ -278,7 +279,7 @@ procedure LoadExternalVariables;
|
||||
var
|
||||
libHandle: THandle;
|
||||
begin
|
||||
libHandle := LoadLibrary(libxml2lib);
|
||||
libHandle := LoadLibrary(xml2lib);
|
||||
if libHandle <> 0 then
|
||||
begin
|
||||
{ xmlregexp.inc }
|
||||
|
Loading…
Reference in New Issue
Block a user