Browse Source

Fix compilation of nds and wii OS rtl

Pierre Muller 3 years ago
parent
commit
f4580ff612
2 changed files with 2 additions and 2 deletions
  1. 1 1
      rtl/nds/system.pp
  2. 1 1
      rtl/wii/system.pp

+ 1 - 1
rtl/nds/system.pp

@@ -159,7 +159,7 @@ function paramstr(l: longint) : string;
      begin
      begin
        paramstr := execpathstr;
        paramstr := execpathstr;
      end
      end
-   else (l > 0) and (l < argc) then
+   else if (l > 0) and (l < argc) then
      paramstr := strpas(argv[l])
      paramstr := strpas(argv[l])
   else
   else
     paramstr := '';
     paramstr := '';

+ 1 - 1
rtl/wii/system.pp

@@ -128,7 +128,7 @@ function paramstr(l: longint) : string;
      begin
      begin
        paramstr := execpathstr;
        paramstr := execpathstr;
      end
      end
-   else (l > 0) and ( l < argc ) then
+   else if (l > 0) and ( l < argc ) then
      paramstr:=strpas(argv[l])
      paramstr:=strpas(argv[l])
    else
    else
      paramstr:='';
      paramstr:='';