[vlc-devel] [PATCH] Fixed static assertion availability checking.

Rafaël Carré funman at videolan.org
Sat Nov 16 19:08:25 CET 2013


Le 16/11/2013 18:32, Rémi Denis-Courmont a écrit :
> Le vendredi 15 novembre 2013, 13:06:45 Maxim Bublis a écrit :
>> I don't see your point clearly, could you describe it?
> 
> _Static_assert is a compiler intrinsic. static_assert is a standard macro 
> defined in <assert.h>.

Here's an extract of glibc's assert.h :

#if defined __USE_ISOC11 && !defined __cplusplus
/* Static assertion.  Requires support in the compiler.  */
# undef static_assert
# define static_assert _Static_assert
#endif

Is it missing from OSX' assert.h ?



More information about the vlc-devel mailing list