I'd move this down to where it's used so you save introducing another #ifdef