I'd be more inclined to test for feature availability than platform name. Try using autoconf.
Otherwise, this is a comprehensive list of platform defines.
Also check out this page for defines regarding compilers, libraries, architectures and devices.