Skip to content

Commit dc70449

Browse files
refackCommit Bot
authored andcommitted
undef min,max macros on windows
This blocks building with official clang-cl and Windows SDK Refs: nodejs/node#19630 Change-Id: I41fdf934f486c660df7a9e0dd284f6eb3c294dd4 Reviewed-on: https://chromium-review.googlesource.com/c/1297479 Commit-Queue: Jakob Gruber <[email protected]> Reviewed-by: Jakob Gruber <[email protected]> Cr-Commit-Position: refs/heads/master@{#57053}
1 parent bb065aa commit dc70449

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/base/debug/stack_trace_win.cc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77

88
#include "src/base/debug/stack_trace.h"
99

10+
// This file can't use "src/base/win32-headers.h" because it defines symbols
11+
// that lead to compilation errors. But `NOMINMAX` should be defined to disable
12+
// defining of the `min` and `max` MACROS.
13+
#ifndef NOMINMAX
14+
#define NOMINMAX
15+
#endif
16+
1017
#include <windows.h>
1118
#include <dbghelp.h>
1219
#include <Shlwapi.h>

0 commit comments

Comments
 (0)