<div class="gmail_quote">On 8 November 2011 00:33, Iain Buclaw <span dir="ltr"><<a href="mailto:ibuclaw@ubuntu.com">ibuclaw@ubuntu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
== Quote from Manu (<a href="mailto:turkeyman@gmail.com">turkeyman@gmail.com</a>)'s article<br>
> --001485ec112698f20204b120c415<br>
> Content-Type: text/plain; charset=UTF-8<br>
<div class="im">> I've been running into this problem on consoles.<br>
> I'd vote for creating a standard, only creating new identifiers according<br>
> to that standard, and also adding standardised versions of existing<br>
> identifiers (leaving also the ones don't conform, possibly remove them in<br>
> D3)<br>
> The __APPLE__ one is a problem, how to identify iOS? OS8/9?<br>
</div><div class="im">> I've been tinkering with PSP... what about Android, PS3, XBox(/360), etc...<br>
> Some of these platforms exist on multiple architectures... how to<br>
> distinguish the architecture from the platform? Standardisation of arch<br>
> names?<br>
<br>
</div>I don't see any real need to have identifiers for console platforms built into<br>
the compiler. As you'd pretty much always would be using a homebrew cross-<br>
compiler, and can simply pass -version=PSP on the command-line in the build<br>
command.<br>
</blockquote><div><br></div><div>... I guess. But I reckon it's a bit of a pain in the arse to remember to do that everywhere (and edit scripts all over the place when cross compiling).</div><div>I don't really see why a platform specific toolchain wouldn't know what it is, and define its self as such.</div>
<div><br></div><div>Not to mention, if you leave it up to the user to expect some arbitrary version identifier passed into their code, you'll never find a standard accepted by all code for a platform... it'll just be a total mess like C is now.</div>
<div>I say it should be proactively selected to encourage standardisation on one, and it should be asserted by the compiler automatically. 10 years of arguing with different compilers and libs for the same platforms disagreeing on how to identify the thing has taught me that much :/</div>
</div>