diff options
-rw-r--r-- | core/network.h | 2 | ||||
-rw-r--r-- | testing/crypto_speed_test.c | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/core/network.h b/core/network.h index 7c95d84d..127a55d1 100644 --- a/core/network.h +++ b/core/network.h | |||
@@ -31,8 +31,10 @@ | |||
31 | #include <time.h> | 31 | #include <time.h> |
32 | 32 | ||
33 | #ifdef WIN32 /* Put win32 includes here */ | 33 | #ifdef WIN32 /* Put win32 includes here */ |
34 | #ifndef WINVER | ||
34 | //Windows XP | 35 | //Windows XP |
35 | #define WINVER 0x0501 | 36 | #define WINVER 0x0501 |
37 | #endif | ||
36 | #include <winsock2.h> | 38 | #include <winsock2.h> |
37 | #include <windows.h> | 39 | #include <windows.h> |
38 | #include <ws2tcpip.h> | 40 | #include <ws2tcpip.h> |
diff --git a/testing/crypto_speed_test.c b/testing/crypto_speed_test.c index 81be92c6..ba40722f 100644 --- a/testing/crypto_speed_test.c +++ b/testing/crypto_speed_test.c | |||
@@ -1,6 +1,9 @@ | |||
1 | // Hi-resolution timer | 1 | // Hi-resolution timer |
2 | #ifdef WIN32 | 2 | #ifdef WIN32 |
3 | 3 | #ifndef WINVER | |
4 | //Windows XP | ||
5 | #define WINVER 0x0501 | ||
6 | #endif | ||
4 | #include <windows.h> | 7 | #include <windows.h> |
5 | double get_time() | 8 | double get_time() |
6 | { | 9 | { |