tags 332682 + patch thanks Thanks a lot!
Regards, // Ola On Thu, Dec 08, 2005 at 04:29:34PM -0500, Aleksey Kliger wrote: > As far as I can tell, the build problems in vnc4 happen because > rfb/Rect.h provides its > own definitions of min() and max() as macros which interact badly with > the guts of the C++ standard library (in particular with some > functions in vector<bool>). On my system locally, I applied the > following changes, and the program seemed to compile fine. > > cheers, > Aleksey Kliger > > ======= > --- rfb/Rect.h.old 2005-12-08 16:16:01.000000000 -0500 > +++ rfb/Rect.h 2005-12-08 15:57:58.000000000 -0500 > @@ -21,13 +21,17 @@ > #ifndef __RFB_RECT_INCLUDED__ > #define __RFB_RECT_INCLUDED__ > > -#ifndef max > -#define max(a,b) (((a) > (b)) ? (a) : (b)) > -#endif > - > -#ifndef min > -#define min(a,b) (((a) < (b)) ? (a) : (b)) > -#endif > +#include <algorithm> > + > +using std::min; > +using std::max; > +// #ifndef max > +// #define max(a,b) (((a) > (b)) ? (a) : (b)) > +// #endif > + > +// #ifndef min > +// #define min(a,b) (((a) < (b)) ? (a) : (b)) > +// #endif > > namespace rfb { > > ======= > > -- --------------------- Ola Lundqvist --------------------------- / [EMAIL PROTECTED] Annebergsslingan 37 \ | [EMAIL PROTECTED] 654 65 KARLSTAD | | +46 (0)54-10 14 30 +46 (0)70-332 1551 | | http://www.opal.dhs.org UIN/icq: 4912500 | \ gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9 / --------------------------------------------------------------- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]