Only use Visual C++ pragma for appropriate versions.

[SVN r86671]