Browse Source

Fix compilation failure for systems that do not have dynlibs

git-svn-id: trunk@37056 -
pierre 8 years ago
parent
commit
e325284160
1 changed files with 4 additions and 0 deletions
  1. 4 0
      rtl/objpas/sysutils/sysutils.inc

+ 4 - 0
rtl/objpas/sysutils/sysutils.inc

@@ -718,7 +718,11 @@ begin
 end;
 {$else}
 begin
+{$ifdef FPC_HAS_FEATURE_DYNLIBS}
   Result:=System.SafeLoadLibrary(FileName);
+{$else}
+  Result:=HModule(nil);
+{$endif not FPC_HAS_FEATURE_DYNLIBS}
 end;
 {$endif}