From d7519eec6a5bae82239e3a11418dbf608db10266 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Tue, 7 Dec 2004 16:37:18 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=4778 --- api/reduce.C | 16 ++-------------- checkin_notes | 6 ++++++ 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/api/reduce.C b/api/reduce.C index fe424bc9ce..38836f8a62 100644 --- a/api/reduce.C +++ b/api/reduce.C @@ -26,19 +26,19 @@ static volatile const char *BOINCrcsid="$Id$"; #include #include //#include "GL/gl.h" -#define max(a,b) (a>b?a:b) -#define min(a,b) (a>b?b:a) #include #include #include #include +#include #ifdef __APPLE_CC__ #include #endif #endif +#include "std_fixes.h" #include "boinc_gl.h" #include "gutil.h" #include "reduce.h" @@ -141,18 +141,10 @@ void REDUCED_ARRAY::reduce_source_row(float* in, float* out) { out[ri] += in[i]; break; case REDUCE_METHOD_MIN: -#ifdef HAVE_STD_MIN - out[ri] = min(out[ri],in[i]); -#else out[ri] = std::min(out[ri],in[i]); -#endif break; case REDUCE_METHOD_MAX: -#ifdef HAVE_STD_MAX - out[ri] = max(out[ri],in[i]); -#else out[ri] = std::max(out[ri],in[i]); -#endif break; } } @@ -263,11 +255,7 @@ void REDUCED_ARRAY::draw_row_quad(int row) { y10 = draw_pos[1] + draw_size[1]*h10; y11 = draw_pos[1] + draw_size[1]*h11; -#ifdef HAVE_STD_MAX - float h = max(h00, max(h01, max(h10, h11))); -#else float h = std::max(h00, std::max(h01, std::max(h10, h11))); -#endif double hue = hue0 + (dhue*i)/rdimx; if (hue > 1) hue -= 1; double sat = 1.; diff --git a/checkin_notes b/checkin_notes index 5bee2b7ff4..c9749dbcad 100755 --- a/checkin_notes +++ b/checkin_notes @@ -20821,3 +20821,9 @@ Bruce 7 Dec 2004 api/ reduce.C +Rom 7 Dec 2004 + - Include the STL header that deals with min and max for STL, and then include + std_fixes.h just in case it needs fixing. + + api/ + reduce.C