Browse Source

+ unzipdll enabled for emx target

Tomas Hajny 21 years ago
parent
commit
3b8d291ddf

+ 3 - 0
packages/extra/unzip/Makefile

@@ -213,6 +213,9 @@ override TARGET_UNITS+=ziptypes unzip
 ifeq ($(OS_TARGET),os2)
 override TARGET_UNITS+=unzipdll
 endif
+ifeq ($(OS_TARGET),emx)
+override TARGET_UNITS+=unzipdll
+endif
 override INSTALL_FPCPACKAGE=y
 ifdef REQUIRE_UNITSDIR
 override UNITSDIR+=$(REQUIRE_UNITSDIR)

+ 1 - 0
packages/extra/unzip/Makefile.fpc

@@ -8,6 +8,7 @@ version=1.9.2
 
 [target]
 units=ziptypes unzip
+units_emx=unzipdll
 units_os2=unzipdll
 
 [install]

+ 9 - 1
packages/extra/unzip/unzipdll.pp

@@ -210,6 +210,11 @@ begin
 end;
 
 begin
+{$IFDEF EMX}
+ if os_Mode <> osOS2 then
+  FileUnzipEx := TFileUnzipEx (@Unzip.FileUnzipEx)
+ else
+{$ENDIF EMX}
  if DLLInit then
  begin
   OldExit := ExitProc;
@@ -242,7 +247,10 @@ begin
 end.
 {
   $Log$
-  Revision 1.5  2003-08-03 22:25:55  hajny
+  Revision 1.6  2004-02-22 16:09:38  hajny
+    + unzipdll enabled for emx target
+
+  Revision 1.5  2003/08/03 22:25:55  hajny
     * integer type inconsistency resolved
 
   Revision 1.4  2002/09/07 15:43:06  peter