Adding a missing #ifdef to avoid warnings