<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="im">
<span style="color:rgb(34,34,34)">I've done some research recently, and would like to share results with you.</span></div></div></div></blockquote><div><br></div><div>So, in my opinion following behavior should be implemented:</div>
<div><br></div><div>A. Building C code:</div><div>[+] Compiler doesn't have _Static_assert -> define _Static_assert</div><div>[+] Standard C library doesn't define static_assert -> define static_assert</div>
<div><br></div><div>B. Building C++ code:</div><div>[+] Compiler doesn't have _Static_assert -> define _Static_assert</div><div>[-] Compiler doesn't support static_assert keyword AND ([+] Standard C++ library doesn't define static_assert) -> define static_assert</div>
<div><br></div><div>[+] and [-] shows implementation state of this behavior in my patch.</div><div><br></div><div>So, here is the question: should we try to build VLC with -std=c++11 (or -std=c++0x in case of GCC 4.6 and earlier)?</div>
<div>If it is not desired, patch already fixes all possible cases.</div><div>If it is desired I will add check for compiler -std=c++11 flag support, and check for static_assert support with this flag enabled.</div><div><br>
</div></div><div><br></div>-- <br>Maxim Bublis
</div></div>