mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-23 23:29:11 +02:00
DBG: Fix GetTickCound on unix
git-svn-id: trunk@28497 -
This commit is contained in:
parent
659adf9c29
commit
23252ff1fe
@ -83,6 +83,7 @@ implementation
|
||||
//////////////////////////////////////////////////
|
||||
|
||||
uses
|
||||
LCLIntf,
|
||||
{$IFdef MSWindows}
|
||||
Windows,
|
||||
{$ENDIF}
|
||||
@ -91,13 +92,6 @@ uses
|
||||
{$ENDIF}
|
||||
SysUtils;
|
||||
|
||||
{$IFnDEF MSWindows}
|
||||
function GetTickCount: DWORD;
|
||||
begin
|
||||
Result := round(Now*86400000) mod (High(DWord) + 1);
|
||||
end;
|
||||
{$ENDIF}
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
Function: WaitForHandles
|
||||
Params: AHandles: A set of handles to wait for (max 32)
|
||||
|
@ -40,7 +40,7 @@ interface
|
||||
|
||||
uses
|
||||
Classes, SysUtils, Controls, Math, Variants, LCLProc, Dialogs, LazConf, DebugUtils,
|
||||
Debugger, FileUtil, CmdLineDebugger, GDBTypeInfo, Maps,
|
||||
Debugger, FileUtil, CmdLineDebugger, GDBTypeInfo, Maps, LCLIntf,
|
||||
{$IFdef MSWindows}
|
||||
Windows,
|
||||
{$ENDIF}
|
||||
@ -1236,13 +1236,6 @@ begin
|
||||
end;
|
||||
{$ENDIF}
|
||||
|
||||
// None windows
|
||||
{$IFnDEF MSWindows}
|
||||
function GetTickCount: DWORD;
|
||||
begin
|
||||
Result := round(Now*86400000) mod (High(DWord) + 1);
|
||||
end;
|
||||
{$ENDIF}
|
||||
{ =========================================================================== }
|
||||
{ Helpers }
|
||||
{ =========================================================================== }
|
||||
|
Loading…
Reference in New Issue
Block a user