Browse Source

* partially merge 30274 to fix embedded (not recorded), mantis #30221

git-svn-id: branches/fixes_3_0@33873 -
marco 9 years ago
parent
commit
b644d609cb
1 changed files with 14 additions and 0 deletions
  1. 14 0
      rtl/embedded/sysutils.pp

+ 14 - 0
rtl/embedded/sysutils.pp

@@ -33,6 +33,9 @@ interface
   { Include platform independent interface part }
   { Include platform independent interface part }
   {$i sysutilh.inc}
   {$i sysutilh.inc}
 
 
+  var
+    SleepHandler: procedure(ms: cardinal) = nil;
+
 implementation
 implementation
 
 
 uses
 uses
@@ -198,6 +201,17 @@ end;
                               Misc Functions
                               Misc Functions
 ****************************************************************************}
 ****************************************************************************}
 
 
+procedure sysBeep;
+begin
+end;
+
+
+Procedure Sleep(Milliseconds : Cardinal);
+begin
+  if assigned(SleepHandler) then
+    SleepHandler(Milliseconds);
+end;
+
 Function GetLastOSError : Integer;
 Function GetLastOSError : Integer;
 begin
 begin
   Result:=-1;
   Result:=-1;