comparison network.h @ 596:f9fb2a96a0c9

Fix compatibility with new mingw.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 12 Oct 2013 07:06:52 +0300
parents 97a49a6cc959
children eeea75b8b6f3
comparison
equal deleted inserted replaced
595:1a650d872504 596:f9fb2a96a0c9
10 #include <unistd.h> 10 #include <unistd.h>
11 #include "th_types.h" 11 #include "th_types.h"
12 #include "th_string.h" 12 #include "th_string.h"
13 13
14 #ifdef __WIN32 14 #ifdef __WIN32
15 #define __OBJC__ // A nasty hack 15 #define __OBJC_BOOL // A nasty hack
16 #include <windows.h> 16 #include <windows.h>
17 #include <winsock.h> 17 #include <winsock.h>
18 typedef uint16_t in_port_t; 18 typedef uint16_t in_port_t;
19 typedef uint32_t in_addr_t; 19 typedef uint32_t in_addr_t;
20 #else 20 #else