Fix compile err with preprocessor definition