Wrap #pragma in #ifdef.