From bd52ac91817d214d84d52085b59638dd8417f70a Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Sun, 24 Feb 2002 02:35:55 +0000 Subject: [PATCH] #undef min/max for MinGW if neccessary [SVN r12917] --- include/boost/detail/limits.hpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/include/boost/detail/limits.hpp b/include/boost/detail/limits.hpp index 81033c5c..494ce0f5 100644 --- a/include/boost/detail/limits.hpp +++ b/include/boost/detail/limits.hpp @@ -92,8 +92,16 @@ enum float_denorm_style { static const __mem_type __mem_name = __mem_value #endif /* BOOST_NO_INCLASS_MEMBER_INITIALIZATION */ -// Base class for all specializations of numeric_limits. +// Deal with min/max for MinGW +#ifdef min +# undef min +#endif +#ifdef max +# undef max +#endif + +// Base class for all specializations of numeric_limits. template class _Numeric_limits_base { public: