Skip to content

Commit

Permalink
fix: add define for winnt version
Browse files Browse the repository at this point in the history
  • Loading branch information
seemk committed Sep 30, 2023
1 parent 7a6092f commit 432e296
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/native_ext/util/platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ int64_t HrTime() { return uv_hrtime(); }

#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#define _WIN32_WINNT 0x0600
#include <windows.h>
#include <sysinfoapi.h>
int64_t MicroSecondsSinceEpoch() {
Expand Down

0 comments on commit 432e296

Please sign in to comment.