<div dir="ltr"><div>Hi Marcus,</div><div><br></div><div>I noticed the same thing yesterday and I just pushed a pull request about it: <a href="https://github.com/scummvm/scummvm/pull/2295">https://github.com/scummvm/scummvm/pull/2295</a></div><div>Instead of specifying -std=gnu11, I propose to stick with -std=c++11 and undefine __STRICT_ANSI__ on Newlib based ports.</div><div>That prevents compiler to accept all GNU extensions to C++ standard but still allows to compile ports without having to patch code too much.</div><div><br></div><div>Regards,</div><div>Phil<br></div><div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le dim. 31 mai 2020 à 11:05, Marcus Comstedt <<a href="mailto:marcus@mc.pp.se">marcus@mc.pp.se</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Hi again.<br>
<br>
I notice now that we already have code in configure to omit the<br>
"-ansi" flag when the target system has newlib (for the same reason),<br>
so I guess the consistent thing to do would be to substitute<br>
"-std=c++11" with "-std=gnu++11" under the same conditions?<br>
<br>
<br>
// Marcus<br>
<br>
<br>
_______________________________________________<br>
Scummvm-devel mailing list<br>
<a href="mailto:Scummvm-devel@lists.scummvm.org" target="_blank">Scummvm-devel@lists.scummvm.org</a><br>
<a href="https://lists.scummvm.org/listinfo/scummvm-devel" rel="noreferrer" target="_blank">https://lists.scummvm.org/listinfo/scummvm-devel</a><br>
</blockquote></div>