Ignore:
Timestamp:
Apr 14, 2021, 3:49:11 PM (4 years ago)
Author:
chronos
Message:
  • Fixed: Build under Windows. fpAsync and fpSock are not supported under Windows. Networking needs to be replaced by something else multi-platform.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Network/UNetworkServer.pas

    r367 r369  
    66
    77uses
    8   Classes, SysUtils, fgl, fpAsync, fpsock, Protocol, fphttpclient;
    9 
     8  Classes, SysUtils, fgl{$IFDEF LINUX}, fpAsync, fpsock{$ENDIF}, Protocol, fphttpclient;
     9
     10{$IFDEF LINUX}
    1011type
    1112  TNetworkServer = class;
     
    7980var
    8081  NetworkServer: TNetworkServer;
     82{$ENDIF}
    8183
    8284procedure Client(Command, Player: integer; var Data); stdcall;
     
    9092procedure Client(Command, Player: integer; var Data);
    9193begin
     94  {$IFDEF LINUX}
    9295  if not Assigned(NetworkServer) then begin
    9396    NetworkServer := TNetworkServer.Create;
     
    99102  end;
    100103  NetworkServer.Client(TCommand(Command), Player, Data);
    101 end;
     104  {$ENDIF}
     105end;
     106
     107{$IFDEF LINUX}
    102108
    103109{ TNetworkServerPlayers }
     
    327333end;
    328334
     335{$ENDIF}
     336
    329337end.
    330338
Note: See TracChangeset for help on using the changeset viewer.