diff --git a/testing/crypto_speed_test.c b/testing/crypto_speed_test.c index 05f4aaf2..bc8052da 100644 --- a/testing/crypto_speed_test.c +++ b/testing/crypto_speed_test.c @@ -8,6 +8,8 @@ //Windows XP #define WINVER 0x0501 #endif + +#include #include double get_time() { diff --git a/toxcore/network.c b/toxcore/network.c index 3abd71e0..ff0cdf29 100644 --- a/toxcore/network.c +++ b/toxcore/network.c @@ -20,6 +20,10 @@ * along with Tox. If not, see . * */ + +#if (_WIN32_WINNT >= _WIN32_WINNT_WINXP) +#define _WIN32_WINNT 0x501 +#endif #ifdef HAVE_CONFIG_H #include "config.h"