Skip to content

Commit f40dd0f

Browse files
committed
Merge branch 'master' into 0.y.z
BORLANDC compilation issues
2 parents c334ac0 + 5256551 commit f40dd0f

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

include/json/value.h

+6-3
Original file line numberDiff line numberDiff line change
@@ -644,9 +644,6 @@ class JSON_API ValueIteratorBase {
644644
typedef int difference_type;
645645
typedef ValueIteratorBase SelfType;
646646

647-
ValueIteratorBase();
648-
explicit ValueIteratorBase(const Value::ObjectValues::iterator& current);
649-
650647
bool operator==(const SelfType& other) const { return isEqual(other); }
651648

652649
bool operator!=(const SelfType& other) const { return !isEqual(other); }
@@ -694,6 +691,12 @@ class JSON_API ValueIteratorBase {
694691
Value::ObjectValues::iterator current_;
695692
// Indicates that iterator is for a null value.
696693
bool isNull_;
694+
695+
public:
696+
// For some reason, BORLAND needs these at the end, rather
697+
// than earlier. No idea why.
698+
ValueIteratorBase();
699+
explicit ValueIteratorBase(const Value::ObjectValues::iterator& current);
697700
};
698701

699702
/** \brief const iterator for object and array value.

src/lib_json/json_writer.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@
3333
#define snprintf std::snprintf
3434
#endif
3535

36+
#if defined(__BORLANDC__)
37+
#include <float.h>
38+
#define isfinite _finite
39+
#define snprintf _snprintf
40+
#endif
41+
3642
#if defined(_MSC_VER) && _MSC_VER >= 1400 // VC++ 8.0
3743
// Disable warning about strdup being deprecated.
3844
#pragma warning(disable : 4996)

0 commit comments

Comments
 (0)