Hi all. I'm new to programming in anything aside from UNIX, but I'm trying to pick up mac os x. I was just porting some of my old tools from UNIX to mac and ran into the following question: how do I do an #ifdef thing to tell if I'm on a mac or a UNIX box? More generally, how do you tell what (macros?) are defined on what system?
and it didn't get me too far, so I figured I'd hear from someone who knows before I learn the wrong way.
Thanks a lot!