Skip to content

Commit bf86827

Browse files
fix windows build
1 parent 433b304 commit bf86827

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

binding.gyp

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,17 @@
22
"targets": [
33
{
44
"target_name": "stack-trace",
5-
"sources": [ "module.cc" ]
5+
"sources": [ "module.cc" ],
6+
"conditions": [
7+
["OS=='win'", {
8+
"defines": [
9+
"WIN32_LEAN_AND_MEAN"
10+
],
11+
"libraries": [
12+
"Mincore.lib"
13+
]
14+
}]
15+
]
616
}
717
]
818
}

module.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
// Platform-specific includes for time functions
77
#ifdef _WIN32
8-
#include <realtimeapiset.h>
98
#include <windows.h>
109
#elif defined(__APPLE__)
1110
#include <time.h>

0 commit comments

Comments
 (0)