replace some ifeq with prettier ifdef