You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Greg Stein <gs...@gmail.com> on 2012/04/24 17:53:55 UTC

Re: svn commit: r1326337 - /subversion/trunk/subversion/libsvn_subr/svn_named_atomic.c

On Apr 24, 2012 11:15 AM, "Daniel Shahaf" <da...@elego.de> wrote:
>
> stefan2@apache.org wrote on Sun, Apr 15, 2012 at 13:42:44 -0000:
>...
> > +++ subversion/trunk/subversion/libsvn_subr/svn_named_atomic.c Sun Apr
15 13:42:44 2012
> > @@ -88,6 +88,12 @@
> >   */
> >  #define SHM_NAME_SUFFIX "Shm"
> >
> > +/* Prevent macro re-definition warning (on Windows in particluar).
> > + */
> > +#ifdef SYNCHRONIZE
> > +#undef SYNCHRONIZE
> > +#endif
>
> Is this a safe change?  Experimenting shows that if later in the file
> a macro is used which is defined in terms of SYNCHRONIZE, the file-local
> definition (below the diff context) would be used even for macros
> defined while the previous definition was effective.
>
> Shouldn't you rename the macro?

Agreed. Rename. Let's stick to our namespace, but failing that, at least
choose other names when we discover a conflict.

Cheers,
-g