[vlc-devel] [PATCH v2] Added check for compiler intrinsic _Static_assert.
Rémi Denis-Courmont
remi at remlab.net
Sat Nov 23 10:45:40 CET 2013
Le samedi 23 novembre 2013, 11:40:27 Rémi Denis-Courmont a écrit :
> Le samedi 23 novembre 2013, 00:07:19 Maxim Bublis a écrit :
> > -#if !defined (HAVE_STATIC_ASSERT)
> > -# define _Static_assert(x, s) ((void) sizeof (struct { unsigned:-!(x);
> > }))
> > +#ifndef HAVE_STATIC_ASSERT
> > +#ifndef HAVE__STATIC_ASSERT
> > +# define _Static_assert(x, s) ((void) sizeof (struct { unsinged:-!(x);
> > }))
> > +#endif
>
> This still makes no sense. The compiler cannot have static_assert() if it
> does not have _Static_assert(), since the former depends on the latter by
> *definition*.
Ah nvmd, the nested logic is the other way around. I still don't see the point
in checking twice though.
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the vlc-devel
mailing list