Use ifdef to avoid build errors from if