Cross-Platform #defines

I've been doing a lot of cross-platform work - linux, solaris, and Mac OS X and I figured out the important machine-dependent #defines that are used on each. Thankfully, all three platforms are using gcc, with Linux being the only 2.95.x-based compiler.

Anyway, here they are:

Machine Vendor CPU
Mac __APPLE__ __MACH__
Solaris __sun__ __sparc__
Linux __linux__ __i386__

So now that they are in the journal, I won't have to go hunting for them on the scrap of paper I used to use. That was just silly.