Checking for features
Checking Platform ID
It's always best to check for features, but it is possible to check for a specific platform:
#if PLATFORM_ID == PLATFORM_BORON
// Boron-specific code goes here
#endif
You can find a complete list of platforms in the source.