diff --git a/src/native_ext/util/platform.cpp b/src/native_ext/util/platform.cpp index 2449e178..c2f79566 100644 --- a/src/native_ext/util/platform.cpp +++ b/src/native_ext/util/platform.cpp @@ -21,6 +21,8 @@ int64_t HrTime() { return uv_hrtime(); } #endif #ifdef _WIN32 +#define WIN32_LEAN_AND_MEAN +#include #include int64_t MicroSecondsSinceEpoch() { FILETIME ft; @@ -30,6 +32,7 @@ int64_t MicroSecondsSinceEpoch() { t -= 116444736000000000LL; return t / 10LL; } +#undef WIN32_LEAN_AND_MEAN #else #include int64_t MicroSecondsSinceEpoch() {