Browse Source

* Fix wrong instances of $ifdef unix

Michaël Van Canneyt 2 years ago
parent
commit
b5a42836be
1 changed files with 5 additions and 5 deletions
  1. 5 5
      packages/fppkg/fpmake.pp

+ 5 - 5
packages/fppkg/fpmake.pp

@@ -70,7 +70,7 @@ begin
     T:=P.Targets.AddUnit('pkgmkconv.pp');
     T:=P.Targets.AddUnit('pkgdownload.pp');
     T:=P.Targets.AddUnit('pkgfpmake.pp');
-    T.Dependencies.AddInclude('{$ifdef unix}cthreads,{$endif} fpmkunitsrc.inc');
+    T.Dependencies.AddInclude('fpmkunitsrc.inc');
     T:=P.Targets.AddUnit('pkgcommands.pp');
     T:=P.Targets.AddUnit('pkgpackagesstructure.pp');
     T:=P.Targets.AddUnit('pkguninstalledsrcsrepo.pp');
@@ -78,9 +78,9 @@ begin
     T:=P.Targets.AddUnit('pkgwget.pp', TargetsWithWGet);
     T:=P.Targets.AddUnit('pkgfphttp.pp', TargetsWithfpWeb);
 
-    // Do not re-generate {$ifdef unix}cthreads,{$endif} fpmkunitsrc.inc by default so it is possible to control
-    // when we want to update the internal {$ifdef unix}cthreads,{$endif} fpmkunitsrc
-    if GetCustomFpmakeCommandlineOptionValue('gen{$ifdef unix}cthreads,{$endif} fpmkunit') <> '' then
+    // Do not re-generate fpmkunitsrc.inc by default so it is possible to control
+    // when we want to update the internal fpmkunitsrc
+    if GetCustomFpmakeCommandlineOptionValue('genfpmkunit') <> '' then
       begin
       Data2Inc := GetCustomFpmakeCommandlineOptionValue('data2inc');
       if Data2Inc<>'' then
@@ -90,7 +90,7 @@ begin
         data2inc := ExeSearch(AddProgramExtension('data2inc', Defaults.BuildOS));
         end;
       if Data2Inc <> '' then
-        P.Commands.AddCommand(Data2Inc,'-b -s $(SOURCE) $(DEST) {$ifdef unix}cthreads,{$endif} fpmkunitsrc','src/fpmkunitsrc.inc','../fpmkunit/src/fpmkunit.pp');
+        P.Commands.AddCommand(Data2Inc,'-b -s $(SOURCE) $(DEST) fpmkunitsrc','src/fpmkunitsrc.inc','../fpmkunit/src/fpmkunit.pp');
       end;
     P.NamespaceMap:='namespaces.lst';
     end;