Skip to content

Commit e247e98

Browse files
committed
windows: fix problem with std::min and std::max
1 parent 0c7b234 commit e247e98

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

common/arg.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@
2323
#include <future>
2424
#endif
2525

26+
// fix problem with std::min and std::max
27+
#if defined(_WIN32)
28+
#define WIN32_LEAN_AND_MEAN
29+
#ifndef NOMINMAX
30+
# define NOMINMAX
31+
#endif
32+
#endif
33+
2634
#include "json-schema-to-grammar.h"
2735

2836
using json = nlohmann::ordered_json;

0 commit comments

Comments
 (0)