Skip to content
This repository was archived by the owner on Oct 15, 2020. It is now read-only.

Commit a9a7dd0

Browse files
committed
build: fix macro issue
1 parent 6a20f8d commit a9a7dd0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: src/node_http2_core-inl.h

+8
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@
55

66
#include "node_http2_core.h"
77
#include "node_internals.h" // arraysize
8+
9+
// min and max are defined in the PAL, which interferes
10+
// with <algorithm>'s std::min and std::max
11+
#ifdef NODE_ENGINE_CHAKRACORE
12+
#undef min
13+
#undef max
14+
#endif
15+
816
#include <algorithm>
917

1018
namespace node {

0 commit comments

Comments
 (0)