> > 1. Use conditional definition:
> > #ifndef MIN
> > #define MIN(a, b) ((a) < (b) ? (a) : (b))
> > #endif
> > And remove the #undef altogether.
>
> That's reasonable.
>
> > 2. Use SVN_MIN instead of TMP_MIN.
>
> Putting it in our "own" name space at least helps us keep track of it
> and makes it easier for other projects to avoid clashes with ours,
> even though it does not guarantee it.
>
> 3. Just undefine MIN before re-defining it:
>
> #undef MIN
> #define MIN ...
>
> I'm pretty confident that a compiler is not allowed to complain
> about undefining a symbol even if it was not already defined. And it
> guarantees that we get the definition that we want.
Okay, I've done it a different way in rCONFLICT... Uh, I mean, Mike's
done in r11404 exactly what I was about to do only he done it sooner.
-karl
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Oct 14 21:35:44 2004