[vlc-devel] [PATCH v2] Added check for compiler intrinsic _Static_assert.
Maxim Bublis
b at codemonkey.ru
Sat Nov 23 11:00:08 CET 2013
>
>
> Ah nvmd, the nested logic is the other way around. I still don't see the
> point
> in checking twice though.
Ok, i'll try to describe in more details.
This patch adds 3 variants of behavior:
1) <assert.h> misses static_assert definition AND compiler misses
_Static_assert definition:
define _Static_assert, then define static_assert as an alias for
_Static_assert.
2) <assert.h> misses static_assert definition AND compiler has
_Static_assert definition:
define static_assert as an alias for _Static_assert.
3) <assert.h> has static_assert definition:
do nothing.
Current logic is:
1) <assert.h> misses static_assert:
define _Static_assert (which definition conflicts with builtin Clang one in
my case and leads to compile-time error) and define static_assert as an
alias for _Static_assert.
--
Maxim Bublis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20131123/7f33eee7/attachment.html>
More information about the vlc-devel
mailing list