[#1094] Re: [ruby-cvs] ruby, ruby/lib: * eval.c (ev_const_defined, ev_const_get), variable.c — Dave Thomas <dave@...>

> * eval.c (rb_mod_autoload, rb_mod_autoload_p): new method;

12 messages 2003/05/29
[#1095] Re: [ruby-cvs] ruby, ruby/lib: * eval.c (ev_const_defined, ev_const_get), variable.c — nobu.nokada@... 2003/05/29

Hi,

Re: ping.rb

From: Daniel Berger <djberge@...>
Date: 2003-05-15 14:16:28 UTC
List: ruby-core #1048
Dave Thomas wrote:
 > nobu.nokada@softhome.net wrote:
 >
 >> You can see 3 `#ifdef __CYGWIN__'s in ruby_connect().  These
 >> code may be needed on Mac OSX.
 >
 >
 >
 > I can do this, but I need to know what to test for to see if I'm on an
 > OSX platform. Is it:
 >
 >    #if defined(__APPLE__) && defined(__MACH__)    ???
 >
 >
 >
 > Cheers
 >
 >
 > Dave

I believe __APPLE__ is a gcc defined macro.  I dunno if CodeWarrior or
other compilers define this.  I *think* you're supposed to do something
like this:

#include <TargetConditionals.h>
#ifdef TARGET_API_MAC_OSX
#define OSX 1
#endif

So, I guess configure needs to test for the presence of
TargetConditionals.h (or does it already?  I don't know).

Regards,

Dan




In This Thread

Prev Next