Predefined Versions for Apple Operating Systems
Luna
luna at foxgirls.gay
Sun Jun 22 14:25:37 UTC 2025
On Sunday, 22 June 2025 at 03:40:44 UTC, Walter Bright wrote:
> Lots of good points, Jonathan.
>
> The current situation for C #defines for operating systems is
> an utter disaster. I can find zero official guidance from Apple
> on what to use.
>
> People have remarked that I was denigrating Linux by using
> lowercase "linux" as the version, but nothing of the sort was
> my intention. It was simply that "linux" was the most commonly
> used predefine in the Linux world.
>
> Maybe we should simply go with "Apple" as the umbrella for the
> various Apple operating systems, and be done with it. Maybe we
> can set a positive trend there! Wouldn't that be nice!
I’d propose 2 predefined versions;
'AppleOS` for all Darwin/mach derived apple OSes
'AppleMobileOS` for all apple OSes that use the mobile set of
APIs (there’s different APIs between the mobile and desktop APIs)
This would make it easier to write software that targets both
desktop and mobile Apple OSes.
More information about the Digitalmars-d
mailing list