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

Maxim Bublis b at codemonkey.ru
Sat Nov 23 20:59:35 CET 2013


> If the C++ headers use static_assert(), it is intrinsically safe to assume
> that static_assert() is supported. Thus your patch is not solving the
> problem.


static_assert is defined as macro in C++ standard library, but C library in
my case doesn't have static_assert defined in <assert.h>

So, really we have these cases:
1) Compiler doesn't have _Static_assert, let's define it (could be GCC
under 4.6 for example)
2) C library doesn't have static_assert, let's define it using
_Static_assert
3) C++ library doesn't have static_assert, let's define it using
_Static_assert

-- 
Maxim Bublis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20131123/051deb24/attachment.html>


More information about the vlc-devel mailing list