Mercurial > hg > nnchat
comparison libnnchat.h @ 64:6a3a917303e4
Some random cleanups, bring back WinSock support.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 11 Nov 2008 22:33:35 +0200 |
parents | ff5d74f0d428 |
children | e763ef5cfd53 |
comparison
equal
deleted
inserted
replaced
63:afd90bbb3af6 | 64:6a3a917303e4 |
---|---|
6 #ifndef LIBNNCHAT_H | 6 #ifndef LIBNNCHAT_H |
7 #define LIBNNCHAT_H | 7 #define LIBNNCHAT_H |
8 | 8 |
9 #include <stdio.h> | 9 #include <stdio.h> |
10 #include <unistd.h> | 10 #include <unistd.h> |
11 #ifdef __WIN32 | |
12 #warning Compiling for Windows | |
13 #include <winsock.h> | |
14 #else | |
11 #include <sys/socket.h> | 15 #include <sys/socket.h> |
16 #include <arpa/inet.h> | |
17 #include <netdb.h> | |
18 #endif | |
12 #include <sys/types.h> | 19 #include <sys/types.h> |
13 #include <arpa/inet.h> | 20 |
14 #include <sys/time.h> | |
15 #include <netdb.h> | |
16 #include <errno.h> | 21 #include <errno.h> |
17 #include "th_string.h" | 22 #include "th_string.h" |
18 | 23 |
19 #define SET_BUFSIZE (4096) | 24 #define SET_BUFSIZE (4096) |
20 #define SET_ALLOC_SIZE (128) | 25 #define SET_ALLOC_SIZE (128) |