# HG changeset patch # User Teemu Piippo # Date 1437662392 -10800 # Node ID 1ea012a6e1ecab8bcf55b81d6b2e1783b01ab73f # Parent 39947c46ed174177fe57d2de45adf0bfa8774179 Fix min/max name clashing diff -r 39947c46ed17 -r 1ea012a6e1ec sources/basics.h --- a/sources/basics.h Thu Jul 23 02:35:13 2015 +0300 +++ b/sources/basics.h Thu Jul 23 17:39:52 2015 +0300 @@ -65,6 +65,9 @@ #define TEXTCOLOR_BrightCyan TEXTCOLOR_Escape "V" #define TEXTCOLOR_Reset TEXTCOLOR_Escape "-" +#undef min +#undef max + BEGIN_ZFC_NAMESPACE template diff -r 39947c46ed17 -r 1ea012a6e1ec sources/main.cpp --- a/sources/main.cpp Thu Jul 23 02:35:13 2015 +0300 +++ b/sources/main.cpp Thu Jul 23 17:39:52 2015 +0300 @@ -28,15 +28,13 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include "main.h" - #ifndef _WIN32 # include #else # include #endif -#include +#include "main.h" #include "network/rconsession.h" #include "huffman.h" #include "interface.h" @@ -87,7 +85,7 @@ FD_SET (0, &fdset); int fd = iface.get_session()->socket()->file_descriptor(); - highest = max (highest, fd); + highest = zfc::max (highest, fd); FD_SET (fd, &fdset); select (highest + 1, &fdset, nullptr, nullptr, &timeout);