Ignore:
Timestamp:
Apr 25, 2022, 6:01:01 PM (3 years ago)
Author:
chronos
Message:
  • Modified: Do not use explicit mode delphi directive as it is already set in project.
  • Modified: Use UNIX instead of LINUX for conditional code to work also on FreeBSD.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Network/UNetworkServer.pas

    r382 r423  
    11unit UNetworkServer;
    22
    3 {$mode delphi}
    4 
    53interface
    64
    75uses
    8   Classes, SysUtils{$IFDEF LINUX}, fgl, fpAsync, fpsock, fphttpclient{$ENDIF}, Protocol;
    9 
    10 {$IFDEF LINUX}
     6  Classes, SysUtils{$IFDEF UNIX}, fgl, fpAsync, fpsock, fphttpclient{$ENDIF}, Protocol;
     7
     8{$IFDEF UNIX}
    119type
    1210  TNetworkServer = class;
     
    8785implementation
    8886
    89 {$IFDEF LINUX}
     87{$IFDEF UNIX}
    9088uses
    9189  Global, UNetworkCommon;
     
    9492procedure Client(Command, Player: integer; var Data);
    9593begin
    96   {$IFDEF LINUX}
     94  {$IFDEF UNIX}
    9795  if not Assigned(NetworkServer) then begin
    9896    NetworkServer := TNetworkServer.Create;
     
    107105end;
    108106
    109 {$IFDEF LINUX}
     107{$IFDEF UNIX}
    110108
    111109{ TNetworkServerPlayers }
Note: See TracChangeset for help on using the changeset viewer.