add preprocessor for APPLE