From ba3fd412929ec4822788b401298e8d9e4950cbab Mon Sep 17 00:00:00 2001 From: phy0292 Date: Sat, 16 Jun 2018 19:28:23 +0800 Subject: [PATCH] BORLAND compatible --- src/lib_json/json_reader.cpp | 4 +++- src/lib_json/json_value.cpp | 4 +++- src/lib_json/json_writer.cpp | 3 +++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/lib_json/json_reader.cpp b/src/lib_json/json_reader.cpp index a2129be..1bcb2eb 100644 --- a/src/lib_json/json_reader.cpp +++ b/src/lib_json/json_reader.cpp @@ -18,7 +18,9 @@ #include #include #include - +#if defined(__BORLANDC__) +#include +#endif #if defined(_MSC_VER) #if !defined(WINCE) && defined(__STDC_SECURE_LIB__) && _MSC_VER >= 1500 // VC++ 9.0 and above #define snprintf sprintf_s diff --git a/src/lib_json/json_value.cpp b/src/lib_json/json_value.cpp index 018b9cd..44b5070 100644 --- a/src/lib_json/json_value.cpp +++ b/src/lib_json/json_value.cpp @@ -18,7 +18,9 @@ #endif #include // size_t #include // min() - +#if defined(__BORLANDC__) +#include +#endif #define JSON_ASSERT_UNREACHABLE assert(false) namespace Json { diff --git a/src/lib_json/json_writer.cpp b/src/lib_json/json_writer.cpp index ec4b486..3646df4 100644 --- a/src/lib_json/json_writer.cpp +++ b/src/lib_json/json_writer.cpp @@ -16,6 +16,9 @@ #include #include +#if defined(__BORLANDC__) +#include +#endif #if defined(_MSC_VER) && _MSC_VER >= 1200 && _MSC_VER < 1800 // Between VC++ 6.0 and VC++ 11.0 #include #define isfinite _finite