add the macro for platform detection.