[vlc-devel] [PATCH] introduce CLIP() macro to replace use pair of __MAX() and __MIN()

Rafaël Carré funman at videolan.org
Wed Nov 16 21:16:57 CET 2011

Le Wed, 16 Nov 2011 22:42:57 +0800,
Can Wu <wu.canus at gmail.com> a écrit :

> 2011/11/16 Rémi Denis-Courmont <remi at remlab.net>

> > No. I don't like __MIN and __MAX, and thus I don't like anything using
> > them either.
> >
> I don't like them too, but let's leave them there for now, kill them
> later?

Yep, I applied your patch, thanks!

> > Unfortunately, I don't cannot figure out a way have those macros
> > expansion-safe yet polymorphic, while not relying on non-standard C
> > extensions.

We can add #ifdef GNUC for a safe macro

Rafaël Carré

More information about the vlc-devel mailing list