Wrapped clang-specific pragma into an #ifdef block.

MSVC was complaining about an unknown pragma.