Mercurial > hg > nnchat
comparison network.h @ 533:52c56ada3816
Fix Win32/MinGW cross-compilation target to work with Debian's gcc-mingw-w64
package, thus upgrading to a new version of MinGW and GCC. Yay.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 07 Jun 2012 03:16:39 +0300 |
parents | 691400f1c9bb |
children | 6e5789cbb4d4 |
comparison
equal
deleted
inserted
replaced
532:cfab338d3c9e | 533:52c56ada3816 |
---|---|
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 #include <windows.h> | 16 #include <windows.h> |
16 #include <winsock.h> | 17 #include <winsock.h> |
17 typedef uint16_t in_port_t; | 18 typedef uint16_t in_port_t; |
18 typedef uint32_t in_addr_t; | 19 typedef uint32_t in_addr_t; |
19 #else | 20 #else |