[vlc-devel] [PATCH] Fixed static assertion availability checking.
Felix Paul Kühne
fkuehne at videolan.org
Sat Nov 16 19:27:32 CET 2013
On 16.11.2013, at 19:08, Rafaël Carré <funman at videolan.org> wrote:
> 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
> Is it missing from OSX' assert.h ?
yep. not sure if intentional or not. So this is needed for compilation with forthcoming Xcode releases and the latest OS X SDK.
More information about the vlc-devel