ifdef to if
fix compile error