Changeset 358 for Common


Ignore:
Timestamp:
May 2, 2012, 12:27:54 PM (13 years ago)
Author:
chronos
Message:
  • Fixed: Compilation under Linux of Common package.
Location:
Common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Common/StopWatch.pas

    r252 r358  
    4343  fIsHighResolution := QueryPerformanceFrequency(fFrequency) ;
    4444  {$ELSE}
    45   raise Exception.Create('Not implemeneted');
     45  fIsHighResolution := False;
    4646  {$ENDIF}
    4747  if NOT fIsHighResolution then fFrequency := MSecsPerSec;
     
    6161    QueryPerformanceCounter(lInt)
    6262    {$ELSE}
    63     raise Exception.Create('Not implemeneted')
    6463    {$ENDIF}
    6564  else
  • Common/UCommon.pas

    r305 r358  
    4545function BCDToInt(Value: Byte): Byte;
    4646function CompareByteArray(Data1, Data2: TArrayOfByte): Boolean;
    47 {$IFDEF Windows}
    4847function GetUserName: string;
    4948function LoggedOnUserNameEx(Format: TUserNameFormat): string;
    50 {$ENDIF}
    5149function SplitString(var Text: string; Count: Word): string;
    5250function GetBit(Variable: QWord; Index: Byte): Boolean;
     
    285283  L: LongWord;
    286284begin
     285
    287286  L := MAX_USERNAME_LENGTH + 2;
    288287  SetLength(Result, L);
     
    317316  end else Result := GetUserName;
    318317end;
     318{$ELSE}
     319function GetUserName: string;
     320begin
     321  Result := '';
     322end;
     323
     324function LoggedOnUserNameEx(Format: TUserNameFormat): string;
     325begin
     326  Result := '';
     327end;
     328
    319329{$ENDIF}
    320330
Note: See TracChangeset for help on using the changeset viewer.