Version Identifiers for Platforms / Architectures not supported by DMD

Jacob Carlborg doob at me.com
Mon Nov 7 01:57:56 PST 2011


On 2011-11-07 09:23, Manu wrote:
> 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?

Perhaps "Mac" for Mac OS and "darwin" for Mac OS X and iOS. Both Mac OS 
X and iOS builds on the same foundation.

> 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?

There are version identifiers for different architectures as well, e.g. 
X86, X86_64 and so on.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list