Re: How does one get the OS Product name programatically?
Re: How does one get the OS Product name programatically?
- Subject: Re: How does one get the OS Product name programatically?
- From: "Finlay Dobbie" <email@hidden>
- Date: Thu, 11 May 2006 10:10:06 +0100
On 11/05/06, Brendan Creane <email@hidden> wrote:
Here's a (reconstructed) copy of sw_vers.c (source
from cached copy of
http://gobsd.com/code/darwin/build/sw_vers.c).
Please retain the license header when re-distributing source code,
especially when the license explicitly tells you to.
You'll notice that I wrote that source file, and I wasn't joking when
I said there is no API for this.
sw_vers.c uses CoreFoundation private SPI, and you should not use this
approach in shipping applications. Copy-pasting the declarations from
CFPriv.h into the source file will let you build without installing
the private headers, but the standard warnings about using SPI apply.
-- Finlay
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden