mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-09-23 20:22:30 -04:00
move _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES up
Required before including the headers. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
9e6328e4c3
commit
8928bac9fc
@ -4,6 +4,15 @@
|
||||
// recognized in your jurisdiction.
|
||||
// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#if !defined(_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES)
|
||||
#define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES 1
|
||||
#endif //_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES
|
||||
|
||||
// Disable warning about strdup being deprecated.
|
||||
#pragma warning(disable : 4996)
|
||||
#endif //_MSC_VER
|
||||
|
||||
#if !defined(JSON_IS_AMALGAMATION)
|
||||
#include "json_tool.h"
|
||||
#include <json/assertions.h>
|
||||
@ -22,17 +31,6 @@
|
||||
#include <sstream>
|
||||
#include <utility>
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#if !defined(_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES)
|
||||
#define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES 1
|
||||
#endif //_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES
|
||||
#endif //_MSC_VER
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
// Disable warning about strdup being deprecated.
|
||||
#pragma warning(disable : 4996)
|
||||
#endif
|
||||
|
||||
// Define JSONCPP_DEPRECATED_STACK_LIMIT as an appropriate integer at compile
|
||||
// time to change the stack limit
|
||||
#if !defined(JSONCPP_DEPRECATED_STACK_LIMIT)
|
||||
|
Loading…
x
Reference in New Issue
Block a user