remove redundant preprocessor definitions