Mercurial > hg > nnchat
diff 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 |
line wrap: on
line diff
--- a/libnnchat.h Tue Nov 11 22:06:07 2008 +0200 +++ b/libnnchat.h Tue Nov 11 22:33:35 2008 +0200 @@ -8,11 +8,16 @@ #include <stdio.h> #include <unistd.h> +#ifdef __WIN32 +#warning Compiling for Windows +#include <winsock.h> +#else #include <sys/socket.h> -#include <sys/types.h> #include <arpa/inet.h> -#include <sys/time.h> #include <netdb.h> +#endif +#include <sys/types.h> + #include <errno.h> #include "th_string.h"