Version Identifiers for Platforms / Architectures not supported by DMD

Iain Buclaw ibuclaw at ubuntu.com
Mon Nov 7 14:33:31 PST 2011


== Quote from Manu (turkeyman at gmail.com)'s article
> --001485ec112698f20204b120c415
> Content-Type: text/plain; charset=UTF-8
> I've been running into this problem on consoles.
> I'd vote for creating a standard, only creating new identifiers according
> to that standard, and also adding standardised versions of existing
> identifiers (leaving also the ones don't conform, possibly remove them in
> D3)
> The __APPLE__ one is a problem, how to identify iOS? OS8/9?
> I've been tinkering with PSP... what about Android, PS3, XBox(/360), etc...
> Some of these platforms exist on multiple architectures... how to
> distinguish the architecture from the platform? Standardisation of arch
> names?

I don't see any real need to have identifiers for console platforms built into
the compiler.  As you'd pretty much always would be using a homebrew cross-
compiler, and can simply pass -version=PSP on the command-line in the build
command.


More information about the Digitalmars-d mailing list