Skip to content

Commit

Permalink
Fix min build fail
Browse files Browse the repository at this point in the history
  • Loading branch information
KangLin committed Jul 22, 2024
1 parent 086f17c commit 1ab93cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions common/rdr/HexInStream.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@

using namespace rdr;

#undef min

#if !defined(_MSC_VER)
static inline int min(int a, int b) {return a<b ? a : b;}
#endif

HexInStream::HexInStream(InStream& is)
: in_stream(is)
Expand Down
2 changes: 1 addition & 1 deletion common/rdr/HexOutStream.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

using namespace rdr;

#ifndef WIN32
#ifndef _MSC_VER
static inline size_t min(size_t a, size_t b) {return a<b ? a : b;}
#endif

Expand Down

0 comments on commit 1ab93cb

Please sign in to comment.