diff options
Diffstat (limited to 'toxcore/tox.h')
-rw-r--r-- | toxcore/tox.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/toxcore/tox.h b/toxcore/tox.h index 44eba081..15bef94c 100644 --- a/toxcore/tox.h +++ b/toxcore/tox.h | |||
@@ -26,6 +26,22 @@ | |||
26 | 26 | ||
27 | #include <stdint.h> | 27 | #include <stdint.h> |
28 | 28 | ||
29 | #ifdef WIN32 | ||
30 | #ifndef WINVER | ||
31 | //Windows XP | ||
32 | #define WINVER 0x0501 | ||
33 | #endif | ||
34 | |||
35 | #include <winsock2.h> | ||
36 | #include <windows.h> | ||
37 | #include <ws2tcpip.h> | ||
38 | |||
39 | #else | ||
40 | |||
41 | #include <netinet/ip.h> | ||
42 | |||
43 | #endif | ||
44 | |||
29 | #ifdef __cplusplus | 45 | #ifdef __cplusplus |
30 | extern "C" { | 46 | extern "C" { |
31 | #endif | 47 | #endif |
@@ -71,6 +87,7 @@ typedef struct { | |||
71 | } tox_IPAny_Port; | 87 | } tox_IPAny_Port; |
72 | 88 | ||
73 | #undef TOX_ENABLE_IPV6 | 89 | #undef TOX_ENABLE_IPV6 |
90 | /* #define TOX_ENABLE_IPV6 */ | ||
74 | #ifdef TOX_ENABLE_IPV6 | 91 | #ifdef TOX_ENABLE_IPV6 |
75 | #define TOX_ENABLE_IPV6_DEFAULT 1 | 92 | #define TOX_ENABLE_IPV6_DEFAULT 1 |
76 | typedef tox_IPAny tox_IP; | 93 | typedef tox_IPAny tox_IP; |