From: Daniel Berger Date: 2003-05-15T23:16:28+09:00 Subject: Re: ping.rb 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 #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