We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 636a1cb commit 603e93dCopy full SHA for 603e93d
packages/profiling-node/binding.gyp
@@ -6,5 +6,15 @@
6
# Silence gcc8 deprecation warning https://github.com/nodejs/nan/issues/807#issuecomment-455750192
7
"cflags": ["-Wno-cast-function-type"]
8
},
9
- ]
+ ],
10
+ 'conditions': [
11
+ [ 'OS=="win"', {
12
+ 'defines': [
13
+ # Stop <windows.h> from defining macros that conflict with
14
+ # std::min() and std::max(). We don't use <windows.h> (much)
15
+ # but we still inherit it from uv.h.
16
+ 'NOMINMAX',
17
+ ]
18
+ }],
19
20
}
packages/profiling-node/bindings/cpu_profiler.cc
@@ -1,3 +1,6 @@
1
+#ifndef NOMINMAX
2
+#define NOMINMAX
3
+#endif
4
5
#include <assert.h>
#include <math.h>
0 commit comments