[vlc-devel] [PATCH v2] Added check for compiler intrinsic _Static_assert.

Rémi Denis-Courmont remi at remlab.net
Sat Nov 23 10:40:27 CET 2013


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*.

>  # define static_assert _Static_assert
>  #endif

-- 
Rémi Denis-Courmont
http://www.remlab.net/




More information about the vlc-devel mailing list