Revert "Remove obsolete MSVC check from pragma guard"

This reverts commit b7ee78884538a79e4767f29ddb87e09a752667d8.