Browse Source

* make fpmkunit shellapi independent by adding the three necessary contants manually,
this makes dependencies easier after r29284, resolves also #27164

git-svn-id: trunk@29285 -

florian 10 years ago
parent
commit
2eef483aaf
1 changed files with 9 additions and 1 deletions
  1. 9 1
      packages/fpmkunit/src/fpmkunit.pp

+ 9 - 1
packages/fpmkunit/src/fpmkunit.pp

@@ -82,7 +82,7 @@ uses
   cthreads,
 {$endif UNIX}
 {$ifdef WINDOWS}
-  windows, ShellApi,
+  windows,
 {$endif WINDOWS}
 {$endif NO_THREADING}
   SysUtils, Classes
@@ -5144,6 +5144,14 @@ end;
 procedure TBuildEngine.SysDeleteTree(Const ADirectoryName: String);
 
   function IntRemoveTree(const ADirectoryName: String) : boolean;
+{$ifdef WINDOWS}
+  { pulling in shellapi with all it dependent units and packages makes things too
+    complicated so just add the constants here }
+  const
+    FO_DELETE                = $0003;
+    FOF_SILENT               = $0004;
+    FOF_NOCONFIRMATION       = $0010;
+{$endif WINDOWS}
   var
     i: integer;
 {$ifdef WINDOWS}