fixing bad #ifdef placement