Check _MSC_VER is defined before we use it

Otherwise it breaks a bunch of stuff on Linux machines because of the way gcc's
preprocessor works (buildbot decryption tests, extcap, etc).

Originally added in Ic5360089f96be620fbe99ba4e819e0caa5ca0215

Change-Id: Iad43fa1415aa331ae375771adac0818ea1b99060
Reviewed-on: https://code.wireshark.org/review/9091
Reviewed-by: Evan Huus <eapache@gmail.com>
This commit is contained in:
Evan Huus 2015-06-24 08:32:13 -07:00
parent b7aacfdd46
commit 5dcd207cc6
1 changed files with 1 additions and 1 deletions

View File

@ -1960,7 +1960,7 @@ file_exists(const char *fname)
return FALSE;
}
#if _MSC_VER < 1900
#if defined(_MSC_VER) && _MSC_VER < 1900
/*
* This is a bit tricky on win32. The st_ino field is documented as: