summaryrefslogtreecommitdiff
path: root/packages/libxml/src/xml2.pas
diff options
context:
space:
mode:
Diffstat (limited to 'packages/libxml/src/xml2.pas')
-rw-r--r--packages/libxml/src/xml2.pas14
1 files changed, 2 insertions, 12 deletions
diff --git a/packages/libxml/src/xml2.pas b/packages/libxml/src/xml2.pas
index 30a6f6c460..5234502295 100644
--- a/packages/libxml/src/xml2.pas
+++ b/packages/libxml/src/xml2.pas
@@ -15,25 +15,15 @@ unit xml2;
interface
uses
-{$IFDEF WINDOWS}
- windows,
-{$ENDIF}
-{$IFDEF UNIX}
- //unixtype,
-{$ENDIF}
dynlibs,
ctypes;
-//{$IF Sizeof(cbool) <> Sizeof(cint)}
-// {$ERROR 'cbool size mismatch!'}
-//{$ENDIF}
-
const
{$IF Defined(WINDOWS)}
- xml2lib = 'libxml2.dll';
+ xml2lib = 'libxml2.'+sharedsuffix;
{$DEFINE EXTDECL := cdecl}
{$ELSEIF Defined(UNIX)}
- xml2lib = 'libxml2'+sharedsuffix;
+ xml2lib = 'libxml2.'+sharedsuffix;
{$DEFINE EXTDECL := cdecl}
{$ELSE}
{$MESSAGE ERROR 'DYNLINK not supported'}