Changeset 358 for Common/UCommon.pas


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

Legend:

Unmodified
Added
Removed
  • 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.