]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - libs/l_net/l_net_wins.c
Wean off #define
[xonotic/netradiant.git] / libs / l_net / l_net_wins.c
index 30ef9ac035d23cc39deb7cd5b8a547a8feafe3a0..937e7abb9cb52dc772a3f15a3f7ec4d93a160302 100644 (file)
 
 #define WinError WinPrint
 
-#define qtrue   1
-#define qfalse  0
-
 typedef struct tag_error_struct
 {
        int errnum;
        LPSTR errstr;
 } ERROR_STRUCT;
 
-#define NET_NAMELEN         64
+const int NET_NAMELEN = 64;
 
 char my_tcpip_address[NET_NAMELEN];
 
-#define DEFAULTnet_hostport 26000
+const int DEFAULTnet_hostport = 26000;
 
-#define MAXHOSTNAMELEN      256
+const int MAXHOSTNAMELEN = 256;
 
 static int net_acceptsocket = -1;       // socket for fielding new connections
 static int net_controlsocket;