Skip to content

Commit

Permalink
BORLAND compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
phy0292 authored and cdunn2001 committed Jun 22, 2018
1 parent 3cde9a9 commit ba3fd41
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/lib_json/json_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
#include <memory>
#include <set>
#include <limits>

#if defined(__BORLANDC__)
#include <stdio.h>
#endif
#if defined(_MSC_VER)
#if !defined(WINCE) && defined(__STDC_SECURE_LIB__) && _MSC_VER >= 1500 // VC++ 9.0 and above
#define snprintf sprintf_s
Expand Down
4 changes: 3 additions & 1 deletion src/lib_json/json_value.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
#endif
#include <cstddef> // size_t
#include <algorithm> // min()

#if defined(__BORLANDC__)
#include <mem.h>
#endif
#define JSON_ASSERT_UNREACHABLE assert(false)

namespace Json {
Expand Down
3 changes: 3 additions & 0 deletions src/lib_json/json_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
#include <cstring>
#include <cstdio>

#if defined(__BORLANDC__)
#include <stdio.h>
#endif
#if defined(_MSC_VER) && _MSC_VER >= 1200 && _MSC_VER < 1800 // Between VC++ 6.0 and VC++ 11.0
#include <float.h>
#define isfinite _finite
Expand Down

0 comments on commit ba3fd41

Please sign in to comment.