diff options
Diffstat (limited to 'extra/yassl/src/timer.cpp')
-rw-r--r-- | extra/yassl/src/timer.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/extra/yassl/src/timer.cpp b/extra/yassl/src/timer.cpp index 8b7d2d17a84..4fe0d3aa4f9 100644 --- a/extra/yassl/src/timer.cpp +++ b/extra/yassl/src/timer.cpp @@ -26,17 +26,13 @@ #include "runtime.hpp" #include "timer.hpp" -#ifdef _WIN32 -#define WIN32_LEAN_AND_MEAN -#include <windows.h> -#else -#include <sys/time.h> -#endif - namespace yaSSL { #ifdef _WIN32 + #define WIN32_LEAN_AND_MEAN + #include <windows.h> + timer_d timer() { static bool init(false); @@ -61,6 +57,8 @@ namespace yaSSL { #else // _WIN32 + #include <sys/time.h> + timer_d timer() { struct timeval tv; |