Fixed warning(error?) on #if testing value of _MSC_VER without checking that it was defined.

This commit is contained in:
Baptiste Lepilleur 2012-12-20 10:08:50 +00:00
parent aff1171153
commit 42321f24a6
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@
#include <cstring>
#include <stdexcept>
#if _MSC_VER >= 1400 // VC++ 8.0
#if defined(_MSC_VER) && _MSC_VER >= 1400 // VC++ 8.0
#pragma warning( disable : 4996 ) // disable warning about strdup being deprecated.
#endif

View File

@ -14,7 +14,7 @@
#include <sstream>
#include <iomanip>
#if _MSC_VER >= 1400 // VC++ 8.0
#if defined(_MSC_VER) && _MSC_VER >= 1400 // VC++ 8.0
#pragma warning( disable : 4996 ) // disable warning about strdup being deprecated.
#endif