Skip to content

Commit 77f0ea1

Browse files
committed
Fixed syntax error on windows when using std::numeric_limits::max.
1 parent 73aa4e5 commit 77f0ea1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/utils/backoff_performer.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,15 @@
2727
*
2828
*/
2929

30+
#ifdef _WIN32
31+
#define NOMINMAX
32+
#endif
33+
3034
#include <algorithm>
3135
#include <limits>
3236
#include "utils/backoff_performer.h"
3337

38+
3439
using std::min;
3540
using std::numeric_limits;
3641

0 commit comments

Comments
 (0)