Skip to content

Commit

Permalink
Fix Windows std::min idiosyncrasy
Browse files Browse the repository at this point in the history
  • Loading branch information
SoapZA committed Oct 31, 2017
1 parent a689db8 commit 1289ff6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/api/internal/io/TcpSocket_p.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ using namespace BamTools::Internal;
#include <sstream>
#include <vector>

// Windows is brain-damaged and pollutes the entire global namespace with
// its min() macro, which in turn causes MSVC to go haywire on std::min.
#undef min

// ------------------------------------
// static utility methods & constants
// ------------------------------------
Expand Down

0 comments on commit 1289ff6

Please sign in to comment.