From c2531ad7f2dc7bfae6357bacc28e7f6a3591d48d Mon Sep 17 00:00:00 2001 From: francesco-ST Date: 2010年10月21日 14:01:03 +0200 Subject: minor C++ config fix --- agg-plot/utils.h | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) (limited to 'agg-plot/utils.h') diff --git a/agg-plot/utils.h b/agg-plot/utils.h index eec7d492..b68d3bed 100644 --- a/agg-plot/utils.h +++ b/agg-plot/utils.h @@ -1,18 +1,28 @@ #ifndef AGGPLOT_UTILS_H #define AGGPLOT_UTILS_H -#include #include "agg_trans_affine.h" -template -T max (T a, T b) { - return (b < a) ? a : b; -} +#ifdef min +#undef min +#endif + +#ifdef max +#undef max +#endif + + +template +T min(T a, T b) +{ + return (a < b) ? a : b; +}; -template -T min (T a, T b) { - return (b> a) ? a : b; -} +template +T max(T a, T b) +{ + return (a> b) ? a : b; +}; extern void trans_affine_compose (agg::trans_affine& a, const agg::trans_affine& b); -- cgit v1.2.3

AltStyle によって変換されたページ (->オリジナル) /