[Scummvm-devel] ATTN Porters: Tests for the new C++ standards
Philippe Valembois
lephilousophe at gmail.com
Sun May 31 11:28:04 UTC 2020
Hi Marcus,
I noticed the same thing yesterday and I just pushed a pull request about
it: https://github.com/scummvm/scummvm/pull/2295
Instead of specifying -std=gnu11, I propose to stick with -std=c++11 and
undefine __STRICT_ANSI__ on Newlib based ports.
That prevents compiler to accept all GNU extensions to C++ standard but
still allows to compile ports without having to patch code too much.
Regards,
Phil
Le dim. 31 mai 2020 à 11:05, Marcus Comstedt <marcus at mc.pp.se> a écrit :
>
> Hi again.
>
> I notice now that we already have code in configure to omit the
> "-ansi" flag when the target system has newlib (for the same reason),
> so I guess the consistent thing to do would be to substitute
> "-std=c++11" with "-std=gnu++11" under the same conditions?
>
>
> // Marcus
>
>
> _______________________________________________
> Scummvm-devel mailing list
> Scummvm-devel at lists.scummvm.org
> https://lists.scummvm.org/listinfo/scummvm-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scummvm.org/pipermail/scummvm-devel/attachments/20200531/e200b5db/attachment.htm>
More information about the Scummvm-devel
mailing list