> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: 09 March 2002 15:04
> trawick 02/03/09 06:04:11 > > Modified: modules/proxy mod_proxy.c > Log: > provide missing MAX() macro so that proxy can compile again > > Revision Changes Path > 1.74 +3 -0 httpd-2.0/modules/proxy/mod_proxy.c > > Index: mod_proxy.c > =================================================================== > RCS file: /home/cvs/httpd-2.0/modules/proxy/mod_proxy.c,v > retrieving revision 1.73 > retrieving revision 1.74 > diff -u -r1.73 -r1.74 > --- mod_proxy.c 9 Mar 2002 07:15:33 -0000 1.73 > +++ mod_proxy.c 9 Mar 2002 14:04:11 -0000 1.74 > @@ -63,6 +63,9 @@ > > extern module AP_MODULE_DECLARE_DATA proxy_module; > > +#ifndef MAX > +#define MAX(x,y) ((x) >= (y) ? (x) : (y)) > +#endif > > /* > * A Web proxy module. Stages: This seems like a common enough thing to deserve a place in APR. We can do it like we handle some of the string functions*, or we can define an APR_MAX, APR_MIN, etc. Thoughts? Sander *) define them if they are not present
