Fix redefined(_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES) warning

This commit is contained in:
terrycz126 2018-11-07 23:54:34 +08:00 committed by Hans Johnson
parent a3c8e86c0b
commit 8b31c6f0fd
2 changed files with 10 additions and 6 deletions

View File

@ -19,19 +19,20 @@
#include <sstream>
#include <utility>
#if __cplusplus >= 201103L
#include <cstdio>
#if __cplusplus >= 201103L
#if !defined(sscanf)
#define sscanf std::sscanf
#endif
#else
#include <cstdio>
#endif //__cplusplus
#if defined(_MSC_VER)
#if !defined(_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES)
#define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES 1
#endif
#endif
#endif //_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES
#endif //_MSC_VER
#if defined(_MSC_VER) && _MSC_VER >= 1400 // VC++ 8.0
// Disable warning about strdup being deprecated.

View File

@ -42,8 +42,11 @@
#define isfinite _finite
#endif
#if !defined(_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES)
#define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES 1
#endif
#endif //_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES
#endif //_MSC_VER
#if defined(__sun) && defined(__SVR4) // Solaris
#if !defined(isfinite)