mapnik-org/mapnik — Issue #690: Patch - Fix min/max issues when windows.h is included
Author: artemp
Created: 2011-10-11 08:08:25+00:00
State: open
Labels: Core_Library

When #include'ing , the min/max functions in std:: and std::numeric_limits don't work any more because windows.h has macros called min and max. This patch changes things like std::max(1, 2) to (std::max)(1, 2) which is more robust than doing an #undef of min and max, especially when done in headers (which is not the case in the mapnik source, but still).