Browse Source

* updated to get it working on windows

git-svn-id: trunk@4711 -
florian 19 years ago
parent
commit
116ca023c2
1 changed files with 9 additions and 6 deletions
  1. 9 6
      packages/extra/zlib/zlib.pp

+ 9 - 6
packages/extra/zlib/zlib.pp

@@ -1,5 +1,4 @@
-{
-}
+{$smartlink on}
 unit zlib;
 
 interface
@@ -15,11 +14,15 @@ interface
 const
   ZLIB_VERSION = '1.1.3';
 
-  {$ifdef netware}  {zlib.nlm comes with netware6}
+{$ifdef netware}  {zlib.nlm comes with netware6}
   libz='zlib';
-  {$else}
-  libz='z';
-  {$endif}
+{$else}
+  {$ifdef windows}
+    libz='zlib1';
+  {$else windows}
+    libz='z';
+  {$endif windows}
+{$endif}
 
 type
   { Compatible with paszlib }