Skip to content

Commit b17427f

Browse files
committed
Fixed windows compile error.
1 parent 5a119f6 commit b17427f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/utils/backoff_performer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2727
*
2828
*/
29-
30-
#include <algorithm>
31-
#include <limits>
3229
#include "utils/backoff_performer.h"
30+
#undef max // solves the windows issue which prevents using std::numeric_limits<T>::max()
31+
#include <limits>
32+
#include <algorithm>
3333

3434
using std::min;
3535
using std::numeric_limits;

0 commit comments

Comments
 (0)