Ignore:
Timestamp:
May 14, 2011, 3:06:27 AM (9 years ago)
Author:
Sam Hocevar
Message:

build: add a --disable-network compilation flag and get rid of most of
the CELLOS_LV2 ifdefs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/netcfg.cpp

    r650 r651  
    2525#include "dev.h"
    2626
    27 #if !defined __CELLOS_LV2__
    28 #   include "net/sock.h"
    29 #endif
     27#include "net/sock.h"
    3028
    3129extern char *get_login();
     
    3331extern char lsf[256];
    3432
    35 #if !defined __CELLOS_LV2__
    3633extern net_protocol *prot;
    37 #endif
    3834
    3935net_configuration::net_configuration()
    4036{
    41 #if !defined __CELLOS_LV2__
    4237  strcpy(name,get_login());
    4338
    4439  strcpy(server_name,"My Netgame");
    45 
    4640
    4741  min_players=2;
     
    5145  server_port=20202;
    5246  state=SINGLE_PLAYER;
    53 #endif
    5447}
    5548
     
    454447{
    455448  int ret=0;
    456 #if !defined __CELLOS_LV2__
    457449  main_screen->clear();
    458450
     
    599591    }
    600592  }
    601 #endif
    602593
    603594  return ret;
Note: See TracChangeset for help on using the changeset viewer.