Skip to content

Commit

Permalink
Win: [skip ci] define NOMINMAX before including Windows.h to avoid na…
Browse files Browse the repository at this point in the history
…me collision with std::min/std::max
  • Loading branch information
wwmayer committed Dec 19, 2022
1 parent 8897cb2 commit 5df04f5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/boost_regex.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@

// Workaround for boost >= 1.78
#ifdef WIN32
#ifndef NOMINMAX
#define NOMINMAX
#endif
#include <Windows.h>
#endif

Expand Down

0 comments on commit 5df04f5

Please sign in to comment.