On 10/24/07, Nobuyoshi Nakada <nobu / ruby-lang.org> wrote:
> Hi,
>
> At Thu, 25 Oct 2007 01:13:40 +0900,
> Laurent Sansonetti wrote in [ruby-core:12895]:
> > We internally have a set of patches that we apply to the Ruby 1.8
> > source tree to build the version of Ruby that ships with Mac OS X.
> > Some of them were written for Leopard (10.5, the upcoming version of
> > Mac OS X that will be released in a few days), others were written for
> > previous versions.
>
> AvailabilityMacros.h has been available on older versions?
> Even on pre-OS X, though I guess ruby can't compile on there
> anymore, is it OK?

AvailabilityMacros.h is available since 10.2. It doesn't exist on
10.0, 10.1 (which was a quick bugfix release for 10.0), or pre-OSX
systems. 10.0 and 10.1 are actually obsolete environments, and I'm not
even sure that ruby can build or run on pre-OSX systems (Fujimoto
Hisakuni wrote some support I think, but it may not be complete).

> Also, is it the Apple's official way to check the version?

Yes it is.

Laurent