Explorar o código

pas2js: compile httpcompiler with fpc 3.2.2

mattias %!s(int64=3) %!d(string=hai) anos
pai
achega
5d571853ac
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      utils/pas2js/httpcompiler.pp

+ 4 - 0
utils/pas2js/httpcompiler.pp

@@ -794,7 +794,11 @@ begin
     httprouter.RegisterRoute('$sys/status',rmGet,@DoStatusRequest);
     end;
   if FAPI<>'' then
+    {$IF FPC_FULLVERSION > 30300}
     TFPWebFileLocationAPIModule.RegisterFileLocationAPI(ExtractWord(1,FAPI,[',']),ExtractWord(2,FAPI,[',']));
+    {$ELSE}
+    Log(etError,'API support missing, Compile with fpc 3.3.1+');
+    {$ENDIF}
   TSimpleFileModule.RegisterDefaultRoute;
   inherited;
 end;