preprocessor macro added to check iOS version