comparison libnnchat.h @ 365:88ac689d11bc

Win32/MinGW specific fixes.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 23 Jun 2011 11:24:25 +0300
parents b465a17ffa47
children ebbe97f2a2a5
comparison
equal deleted inserted replaced
364:f73354a738b3 365:88ac689d11bc
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 #include "th_types.h"
11 #ifdef __WIN32 12 #ifdef __WIN32
12 #include <windows.h> 13 #include <windows.h>
13 #include <winsock.h> 14 #include <winsock.h>
15 typedef uint16_t in_port_t;
16 typedef uint32_t in_addr_t;
14 #else 17 #else
15 #include <sys/select.h> 18 #include <sys/select.h>
16 #include <sys/socket.h> 19 #include <sys/socket.h>
17 #ifdef HAVE_NETINET_IN_H 20 #ifdef HAVE_NETINET_IN_H
18 #include <netinet/in.h> 21 #include <netinet/in.h>