Use the platform library for platform detection